Skip to content

Commit

Permalink
Run CI on Python 3.11 (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
antonagestam authored Sep 17, 2022
1 parent 83e864a commit dad055f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,38 +12,35 @@ concurrency:
jobs:
lint:
name: Static analysis
uses: less-action/reusables/.github/workflows/pre-commit.yaml@v2
uses: less-action/reusables/.github/workflows/pre-commit.yaml@v6
with:
python-version: "3.10"

check-build:
name: Check packaging metadata
uses: less-action/reusables/.github/workflows/python-test-build.yaml@v2
uses: less-action/reusables/.github/workflows/python-test-build.yaml@v6

test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
python-version: ["3.10", "3.11-dev"]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: pip cache
uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('setup.cfg') }}
restore-keys: ${{ runner.os }}-pip
cache: pip
cache-dependency-path: setup.cfg
check-latest: true
- run: pip install -e '.[test]'
- run: coverage run -m pytest
- run: |
coverage report
coverage xml
- uses: codecov/codecov-action@v2
- uses: codecov/codecov-action@v3
with:
file: coverage.xml
fail_ci_if_error: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ on:

jobs:
build-and-publish:
uses: less-action/reusables/.github/workflows/python-publish.yaml@v2
uses: less-action/reusables/.github/workflows/python-publish.yaml@v6
secrets:
pypi_api_token: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 2 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
comment:
require_changes: true

0 comments on commit dad055f

Please sign in to comment.