From 3830c1ca60b43f75d4e07426548f0763207707f2 Mon Sep 17 00:00:00 2001 From: Aarni Koskela Date: Tue, 1 Oct 2024 13:51:52 +0300 Subject: [PATCH] Fix CI (#23) * Update CI action versions * Remove stale .flake8 file --- .flake8 | 3 --- .github/workflows/ci.yml | 31 ++++++++++++++----------------- 2 files changed, 14 insertions(+), 20 deletions(-) delete mode 100644 .flake8 diff --git a/.flake8 b/.flake8 deleted file mode 100644 index 997e99b..0000000 --- a/.flake8 +++ /dev/null @@ -1,3 +0,0 @@ -[flake8] -exclude = docs -max-line-length = 88 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 02fee30..ff7c2c0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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/action@v3.0.0 + python-version: "3.12" + - uses: pre-commit/action@v3.0.1 test: strategy: @@ -33,24 +33,22 @@ 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 . @@ -58,11 +56,10 @@ jobs: 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 @@ -70,7 +67,7 @@ jobs: - 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