Skip to content

Commit 3e5f46d

Browse files
committed
Modify tests.yaml to use uv run instead of uvx
1 parent 696eeaa commit 3e5f46d

5 files changed

Lines changed: 35 additions & 16287 deletions

File tree

.github/workflows/test.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,21 @@ jobs:
2525
- name: Code formatting
2626
if: ${{ matrix.python-version == '3.14' }}
2727
run: |
28-
uvx ruff check .
29-
uvx ruff format --check .
28+
uv run ruff check .
29+
uv run ruff format --check .
3030
- name: Typos
3131
if: ${{ matrix.python-version == '3.14' }}
3232
run: |
33-
uvx typos .
33+
uv run typos .
3434
- name: Unit test
3535
run: |
36-
uvx --with . --with pytest coverage run -m pytest tests/
36+
uv run coverage run -m pytest tests/
3737
- name: Type Checking
3838
if: ${{ matrix.python-version != '3.10' }}
3939
run: |
40-
uvx --with . --with asyncssh mypy --strict src/ --platform win32
41-
uvx --with . --with asyncssh mypy --strict src/ --platform linux
42-
uvx --with . --with asyncssh mypy --strict src/ --platform darwin
40+
uv run mypy --strict src/ --platform win32
41+
uv run mypy --strict src/ --platform linux
42+
uv run mypy --strict src/ --platform darwin
4343
- name: Validate README.md
4444
if: ${{ matrix.python-version == '3.14' }}
4545
# Ensure that the README renders correctly (required for uploading to PyPI).
@@ -48,7 +48,7 @@ jobs:
4848
python -m readme_renderer README.rst > /dev/null
4949
- name: Run codecov
5050
run: |
51-
uvx codecov
51+
uv run codecov
5252
- name: Upload coverage to Codecov
5353
uses: codecov/codecov-action@v5
5454
env:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ pip-log.txt
3030
.tox
3131
nosetests.xml
3232
.pytest_cache
33+
coverage.xml
3334

3435
# Translations
3536
*.mo

0 commit comments

Comments
 (0)