Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
py: "3.9"

runs-on: ubuntu-latest
name: "Run '${{ matrix.toxenv }}' on python ${{ matrix.py }}"
name: "'${{ matrix.toxenv }}' on py${{ matrix.py }}"
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -61,10 +61,10 @@ jobs:
ci-test-matrix:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu, windows, macos]
py: ['3.9', '3.10', '3.11', '3.12', '3.13']
name: "Run tests on ${{ matrix.os }}, py${{ matrix.py }}"
runs-on: ${{ matrix.os }}
name: "Test on ${{ matrix.os }}, py${{ matrix.py }}"
runs-on: "${{ matrix.os }}-latest"
steps:
- uses: actions/checkout@v4

Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
- name: test
run: |
python -m tox run -m ci -- --junitxml pytest.{envname}.xml
python -m tox run -e cov
python -m tox run -e cov_combine,cov_report

- uses: actions/upload-artifact@v4
with:
Expand Down
17 changes: 12 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ envlist =
py{313,312,311,310,39}
py{39,313}-{json5,pyjson5}{,-format}
py{39,313}-{disable_orjson}
cov
cov_combine
cov_report
skip_missing_interpreters = true
minversion = 4.0.0

Expand Down Expand Up @@ -39,13 +40,19 @@ skip_install = true
commands = coverage erase
depends =

[testenv:cov]
description = "combine and report coverage data"
[testenv:cov_combine]
description = "combine coverage data"
deps = coverage
skip_install = true
commands = coverage combine
depends = py{,38,39,310,311,312,313}{,-mindeps,-format,-json5,-pyjson5,-disable_orjson}

[testenv:cov_report]
description = "report test coverage"
deps = coverage
skip_install = true
commands_pre = - coverage combine
commands = coverage report --skip-covered
depends = py{,38,39,310,311,312}{,-mindeps,-format,-json5,-pyjson5,-disable_orjson}
depends = cov_combine

[testenv:mypy]
description = "check type annotations with mypy"
Expand Down
Loading