Skip to content

Commit

Permalink
Replace unmaintained setup-nox with plain setup-python
Browse files Browse the repository at this point in the history
  • Loading branch information
d-k-bo committed Oct 21, 2023
1 parent c4860bc commit c44a9c5
Showing 1 changed file with 30 additions and 13 deletions.
43 changes: 30 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,33 +5,50 @@ jobs:
name: Check format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: excitedleigh/[email protected]
- run: nox -s check_format
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.12"
cache: pip
- run: pip install nox
- run: nox --no-venv -s check_format
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: excitedleigh/[email protected]
- run: nox -s lint
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.12"
cache: pip
- run: pip install nox
- run: nox --no-venv -s lint
type-check:
name: Type check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: excitedleigh/[email protected]
- run: nox -s mypy
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.12"
cache: pip
- run: pip install nox
- run: nox --no-venv -s mypy
tests:
name: Test
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
venv_version: ["3.9", "3.10", "3.11", "3.12"]
python_version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- uses: excitedleigh/[email protected]
- run: nox -s test-${{ matrix.venv_version }} --error-on-missing-interpreters
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
cache: pip
- run: pip install nox
- run: nox --no-venv -s test-${{ matrix.python_version }}
- name: Upload coverage to Codecov
if: matrix.python_version == '3.12'
uses: codecov/codecov-action@v2

0 comments on commit c44a9c5

Please sign in to comment.