From dad055f611cf8c425ff8c6be006e6be456decb2f Mon Sep 17 00:00:00 2001 From: Anton Agestam Date: Sun, 18 Sep 2022 00:24:33 +0200 Subject: [PATCH] Run CI on Python 3.11 (#1) --- .github/workflows/ci.yaml | 21 +++++++++------------ .github/workflows/release.yaml | 2 +- codecov.yml | 2 ++ 3 files changed, 12 insertions(+), 13 deletions(-) create mode 100644 codecov.yml diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 95d61ba..4868d9d 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index aaff818..c748efc 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 }} diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..ba6f0b2 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,2 @@ +comment: + require_changes: true