Skip to content

Commit

Permalink
Update pytest.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ujex256 authored Jul 18, 2024
1 parent fae3b67 commit 53715dc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,18 @@ jobs:
pip install pytest
if [ -e pyproject.toml ]; then
poetry install
is_pip = false
elif [ -e requirements.txt ]; then
pip install -r requirements.txt
is_pip = true
else
echo "Cannot find package file"
exit 1
fi
- name: Test with pytest
run: |
pytest
if "${is_pip}"; then
pytest
else
poetry run pytest
fi

0 comments on commit 53715dc

Please sign in to comment.