Skip to content

Commit

Permalink
ci: Fix pytest wheel job
Browse files Browse the repository at this point in the history
  • Loading branch information
tkarabela committed May 19, 2024
1 parent 1ae7bc4 commit b7b039f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit b7b039f

Please sign in to comment.