Skip to content

Commit

Permalink
Run pytest through uv
Browse files Browse the repository at this point in the history
  • Loading branch information
wummel committed Nov 4, 2024
1 parent 38e3517 commit efbb449
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,10 @@ jobs:
sudo apt-get update &&
sudo apt-get install arc archmage arj binutils bzip2 cabextract lzip lz4 plzip clzip pdlzip cpio flac genisoimage lbzip2 libarchive-tools lhasa lrzip lzop ncompress nomarch pbzip2 p7zip-full rpm2cpio unzip unace unalz unar sharutils tar xdms zip zopfli zstd
- name: Install pytest
run: |
uv tool install pytest
- name: Install development dependencies
run: |
uv sync --only-dev
- name: Test with pytest
run: |
pytest -s --full-trace --numprocesses auto tests/
uv run pytest -s --full-trace --numprocesses auto tests/
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ checkoutdatedgh: ## check for outedated github tools

.PHONY: test
test: ## run tests
pytest $(PYTESTOPTS) $(TESTOPTS) $(TESTS)
uv run pytest $(PYTESTOPTS) $(TESTOPTS) $(TESTS)

.PHONY: typecheck
typecheck: ## run pytype
Expand Down

0 comments on commit efbb449

Please sign in to comment.