Skip to content

Commit b447520

Browse files
committed
chore(ci): Run checks via tox
1 parent 05621c6 commit b447520

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

.github/workflows/test.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,23 @@ jobs:
7676
with:
7777
token: ${{ secrets.CODECOV_TOKEN }}
7878
if: ${{ always() }}
79+
80+
checks:
81+
runs-on: "ubuntu-latest"
82+
continue-on-error: true
83+
strategy:
84+
matrix:
85+
check: ["style", "spellcheck"]
86+
87+
steps:
88+
- uses: actions/checkout@v4
89+
with:
90+
persist-credentials: false
91+
- name: Install the latest version of uv
92+
uses: astral-sh/setup-uv@v4
93+
- name: Install tox
94+
run: uv tool install tox --with=tox-uv
95+
- name: Show tox config
96+
run: tox c -e ${{ matrix.check }}
97+
- name: Run check
98+
run: tox -e ${{ matrix.check }}

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ uv_resolution =
4848
min: lowest-direct
4949

5050
commands_pre =
51-
python scripts/fetch_templates.py
51+
# Use py* to disable for other environments
52+
py3{10,11,12,13}: python scripts/fetch_templates.py
5253
commands =
5354
pytest --cov-report term-missing --durations=20 --durations-min=1.0 {posargs:-n auto}
5455

0 commit comments

Comments
 (0)