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