Skip to content

Commit

Permalink
Fix CI (#23)
Browse files Browse the repository at this point in the history
* Update CI action versions

* Remove stale .flake8 file
  • Loading branch information
akx authored Oct 1, 2024
1 parent 7f54fac commit 3830c1c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 20 deletions.
3 changes: 0 additions & 3 deletions .flake8

This file was deleted.

31 changes: 14 additions & 17 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.9"
- uses: pre-commit/[email protected].0
python-version: "3.12"
- uses: pre-commit/[email protected].1

test:
strategy:
Expand All @@ -33,44 +33,41 @@ jobs:
- ubuntu-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: pip install pytest pytest-cov -e .
- run: py.test --cov . --cov-report=xml --cov-report=term-missing
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4

mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.12"
- run: pip install mypy -e .
- run: mypy --strict --install-types --non-interactive .

build:
runs-on: ubuntu-latest
needs: [lint, test, mypy]
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
python-version: "3.12"
- name: Install pypa/build
run: python -m pip install build twine --user
- name: Build a binary wheel and a source tarball
run: python -m build --sdist --wheel --outdir dist/ .
- name: Check the distribution
run: twine check dist/*
- name: Upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: dist
path: dist
Expand Down

0 comments on commit 3830c1c

Please sign in to comment.