Skip to content

Commit bf41b70

Browse files
committed
Update testing
1 parent c89a93f commit bf41b70

1 file changed

Lines changed: 17 additions & 14 deletions

File tree

.github/workflows/tests.yml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,16 @@ jobs:
2828
python-version: [ "3.14", "3.11" ]
2929
tox-command: [ "lint", "pyroma", "mypy" ]
3030
steps:
31-
- uses: actions/checkout@v4
31+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3232
- name: "Install uv"
33-
uses: "astral-sh/setup-uv@v3"
33+
uses: "astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b" # v8.1.0
3434
with:
3535
enable-cache: true
3636
cache-dependency-glob: "pyproject.toml"
37+
python-version: ${{ matrix.python-version }}
3738
- name: "Run command"
3839
run: |
39-
uvx -p ${{ matrix.python-version }} --with tox-uv tox -e ${{ matrix.tox-command }}
40+
uvx --with tox-uv tox -e ${{ matrix.tox-command }}
4041
4142
docs:
4243
name: Documentation
@@ -50,23 +51,24 @@ jobs:
5051
# a year early, which prompted re-thinking about this.
5152
python-version: [ "3.14" ]
5253
steps:
53-
- uses: actions/checkout@v4
54+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5455
- name: "Install uv"
55-
uses: "astral-sh/setup-uv@v3"
56+
uses: "astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b" # v8.1.0
5657
with:
5758
enable-cache: true
5859
cache-dependency-glob: "pyproject.toml"
60+
python-version: ${{ matrix.python-version }}
5961
- name: Install dependencies
6062
run: |
6163
sudo apt-get install graphviz
6264
- name: Lint documentation
63-
run: uvx -p ${{ matrix.python-version }} --with tox-uv tox -e docs-lint
65+
run: uvx --with tox-uv tox -e docs-lint
6466
- name: Check docstring coverage
65-
run: uvx -p ${{ matrix.python-version }} --with tox-uv tox -e docstr-coverage
67+
run: uvx --with tox-uv tox -e docstr-coverage
6668
- name: Check documentation build with Sphinx
67-
run: uvx -p ${{ matrix.python-version }} --with tox-uv tox -e docs-test
69+
run: uvx --with tox-uv tox -e docs-test
6870
- name: Lint markdown
69-
run: uvx -p ${{ matrix.python-version }} --with tox-uv tox -e lint-markdown
71+
run: uvx --with tox-uv tox -e lint-markdown
7072

7173
tests:
7274
name: Tests
@@ -78,20 +80,21 @@ jobs:
7880
os: [ ubuntu-latest ]
7981
python-version: [ "3.14", "3.11" ]
8082
steps:
81-
- uses: actions/checkout@v4
83+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
8284
- name: "Install uv"
83-
uses: "astral-sh/setup-uv@v3"
85+
uses: "astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b" # v8.1.0
8486
with:
8587
enable-cache: true
8688
cache-dependency-glob: "pyproject.toml"
89+
python-version: ${{ matrix.python-version }}
8790
- name: Test with pytest and generate coverage file
8891
run:
89-
uvx -p ${{ matrix.python-version }} --with tox-uv tox -e py
92+
uvx --with tox-uv tox -e py
9093
- name: Run doctests
9194
run:
92-
uvx -p ${{ matrix.python-version }} --with tox-uv tox -e doctests
95+
uvx --with tox-uv tox -e doctests
9396
- name: Upload coverage report to codecov
94-
uses: codecov/codecov-action@v4
97+
uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v6.0.0
9598
if: success()
9699
with:
97100
file: coverage.xml

0 commit comments

Comments
 (0)