From ca9ba42aaed2d62786b978d634e8033a88b3aacf Mon Sep 17 00:00:00 2001 From: Tomas Karabela Date: Sun, 19 May 2024 15:08:03 +0200 Subject: [PATCH] ci: Fix pytest wheel job --- .github/workflows/main.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index aacb994..19db15f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -51,12 +51,14 @@ jobs: env_vars: OS,PYTHON - name: Test with pytest (sdist) run: | - python -m build --sdist --outdir build-test + python -m build --outdir build-test cd build-test tar xf pysubs2-*.tar.gz cd $(find -maxdepth 1 -type d -name 'pysubs2-*') PYTHONPATH=. pytest - name: Test with pytest (wheel) run: | - python -m pip install ../pysubs2-*.whl + cd build-test + python -m pip install pysubs2-*.whl + cd $(find -maxdepth 1 -type d -name 'pysubs2-*') pytest