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 ca9ba42
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ca9ba42

Please sign in to comment.