From efbb4491f75a3fc9b6a52e0c6285512ce2319f84 Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Mon, 4 Nov 2024 12:34:08 +0100 Subject: [PATCH] Run pytest through uv --- .github/workflows/python-package.yml | 6 +----- Makefile | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index bcb09b14..670e61d6 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -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/ diff --git a/Makefile b/Makefile index b3e09e54..3ff4fd22 100644 --- a/Makefile +++ b/Makefile @@ -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