Skip to content

Commit

Permalink
Merge pull request #2041 from PyCQA/ci/general-ci-improvements
Browse files Browse the repository at this point in the history
General CI improvements
  • Loading branch information
staticdev committed Dec 15, 2022
2 parents 8a10e47 + abd5eb2 commit 501855c
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 25 deletions.
5 changes: 4 additions & 1 deletion .github/labels.yml
Expand Up @@ -53,7 +53,7 @@
description: Refactoring
color: "ef67c4"
- name: removal
description: Removals and Deprecations
description: Removals and deprecations
color: "9ae7ea"
- name: style
description: Style
Expand All @@ -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"
11 changes: 8 additions & 3 deletions .github/release-drafter.yml
@@ -1,3 +1,9 @@
---
template: |
## Changes
$CHANGES
categories:
- title: ":boom: Breaking Changes"
label: "breaking"
Expand Down Expand Up @@ -25,7 +31,6 @@ categories:
labels:
- "dependencies"
- "build"
template: |
## Changes

$CHANGES
exclude-labels:
- "skip-changelog"
2 changes: 1 addition & 1 deletion .github/workflows/constraints.txt
@@ -1,3 +1,3 @@
pip==22.3.1
poetry==1.3.1
poetry==1.2.2
virtualenv==20.17.1
7 changes: 5 additions & 2 deletions .github/workflows/integration.yml
@@ -1,6 +1,9 @@
---
name: Integration

on: [push, pull_request]
"on":
push:
pull_request:

permissions:
contents: read
Expand All @@ -10,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
python-version: ["3.11"]

steps:
- uses: actions/checkout@v2
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/labeler.yml
@@ -1,6 +1,7 @@
---
name: Labeler

on:
"on":
push:
branches:
- main
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/lint.yml
@@ -1,6 +1,9 @@
---
name: Lint

on: [push, pull_request]
"on":
push:
pull_request:

permissions:
contents: read
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
@@ -1,7 +1,7 @@
---
name: Release

on:
"on":
push:
branches:
- main
Expand Down Expand Up @@ -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
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
@@ -1,6 +1,9 @@
---
name: Test

on: [push, pull_request]
"on":
push:
pull_request:

permissions:
contents: read
Expand Down Expand Up @@ -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
Expand All @@ -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
18 changes: 9 additions & 9 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 501855c

Please sign in to comment.