[GitHub Actions] move downstream (rather than up) to run tests

This commit is contained in:
MinchinWeb 2021-05-16 21:39:01 -06:00
parent 5de162e838
commit a3e7c7ff53

View file

@ -52,16 +52,14 @@ jobs:
poetry install --remove-untracked
poetry install
poetry run python -m pip install ./tests/external_plugins_src/
poetry shell
cd ..
cd features
# installed test plugins aren't recognized by "behave" if run from the
# project's root folder, but "poetry run" doesn't work on folders upstream
# from project root
# project's root folder
- name: Test with pytest
if: success() || failure()
run: pytest --junitxml=reports/pytest/results.xml
run: poetry run pytest --junitxml=reports/pytest/results.xml
- name: Test with behave
if: success() || failure()
run: behave --no-skipped --format progress2 --junit --junit-directory reports/behave jrnl/features
run: poetry run behave --no-skipped --format progress2 --junit --junit-directory reports/behave