From b7b039febbb8b566a815561a003b782a04d55262 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 | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index aacb994..43547d7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -49,14 +49,19 @@ jobs: with: token: ${{ secrets.CODECOV_TOKEN }} env_vars: OS,PYTHON - - name: Test with pytest (sdist) + - name: Build sdist and wheel run: | - python -m build --sdist --outdir build-test + python -m build --outdir build-test cd build-test tar xf pysubs2-*.tar.gz + - name: Test with pytest (sdist) + run: | + cd build-test 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