summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorstaticdev <staticdev-support@protonmail.com>2022-12-15 21:21:18 +0100
committerstaticdev <staticdev-support@protonmail.com>2022-12-15 21:21:18 +0100
commit9d7c117ef44c251588b493070df071320088a5b1 (patch)
tree145533a50a16af30c748ed16212184041a5d0724 /.github
parent8a10e47912d7dff44280abd8625c7ffb188acd85 (diff)
downloadisort-9d7c117ef44c251588b493070df071320088a5b1.tar.gz
General CI improvements
Diffstat (limited to '.github')
-rw-r--r--.github/labels.yml5
-rw-r--r--.github/release-drafter.yml11
-rw-r--r--.github/workflows/integration.yml7
-rw-r--r--.github/workflows/labeler.yml3
-rw-r--r--.github/workflows/lint.yml5
-rw-r--r--.github/workflows/release.yml4
-rw-r--r--.github/workflows/test.yml10
7 files changed, 30 insertions, 15 deletions
diff --git a/.github/labels.yml b/.github/labels.yml
index 263c4d3f..f5bf73f1 100644
--- a/.github/labels.yml
+++ b/.github/labels.yml
@@ -53,7 +53,7 @@
description: Refactoring
color: "ef67c4"
- name: removal
- description: Removals and Deprecations
+ description: Removals and deprecations
color: "9ae7ea"
- name: style
description: Style
@@ -64,3 +64,6 @@
- name: wontfix
description: This will not be worked on
color: "ffffff"
+- name: skip-changelog
+ description: This will not be added to release notes
+ color: "dddddd"
diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml
index 0fa65d39..ac1018ad 100644
--- a/.github/release-drafter.yml
+++ b/.github/release-drafter.yml
@@ -1,3 +1,9 @@
+---
+template: |
+ ## Changes
+
+ $CHANGES
+
categories:
- title: ":boom: Breaking Changes"
label: "breaking"
@@ -25,7 +31,6 @@ categories:
labels:
- "dependencies"
- "build"
-template: |
- ## Changes
- $CHANGES
+exclude-labels:
+ - "skip-changelog"
diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml
index f26a0c9f..8f8f7352 100644
--- a/.github/workflows/integration.yml
+++ b/.github/workflows/integration.yml
@@ -1,6 +1,9 @@
+---
name: Integration
-on: [push, pull_request]
+"on":
+ push:
+ pull_request:
permissions:
contents: read
@@ -10,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- python-version: ["3.9"]
+ python-version: ["3.11"]
steps:
- uses: actions/checkout@v2
diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml
index ae157d92..0d55db3e 100644
--- a/.github/workflows/labeler.yml
+++ b/.github/workflows/labeler.yml
@@ -1,6 +1,7 @@
+---
name: Labeler
-on:
+"on":
push:
branches:
- main
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index def6e4db..ca9fda6a 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -1,6 +1,9 @@
+---
name: Lint
-on: [push, pull_request]
+"on":
+ push:
+ pull_request:
permissions:
contents: read
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 62000862..80297c59 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -1,7 +1,7 @@
---
name: Release
-on:
+"on":
push:
branches:
- main
@@ -34,7 +34,7 @@ jobs:
- name: Check if there is a parent commit
id: check-parent-commit
run: |
- echo "::set-output name=sha::$(git rev-parse --verify --quiet HEAD^)"
+ echo "name=sha::$(git rev-parse --verify --quiet HEAD^)" >> $GITHUB_ENV
- name: Detect and tag new version
id: check-version
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index b9f63c8b..46b01584 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -1,6 +1,9 @@
+---
name: Test
-on: [push, pull_request]
+"on":
+ push:
+ pull_request:
permissions:
contents: read
@@ -58,11 +61,8 @@ jobs:
- name: Install Poetry
run: |
- python -m pip install --upgrade pip
pipx install --pip-args=--constraint=.github/workflows/constraints.txt poetry
- python -m pip install --upgrade poetry
poetry --version
- poetry install
- name: Install dependencies
run: poetry install
@@ -72,5 +72,5 @@ jobs:
run: ./scripts/test.sh
- name: Report Coverage
- if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8'
+ if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
uses: codecov/codecov-action@v1