Skip to content

Commit

Permalink
Use interactive bash session also when calling pytest
Browse files Browse the repository at this point in the history
Otherwise the environment does not source the setup.sh script of Ignition
  • Loading branch information
diegoferigo committed Apr 1, 2021
1 parent 58ccc0c commit eee866d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,13 @@ jobs:
# ============

- name: '[ScenarI/O] Python Tests'
shell: bash -i -e {0}
run: |
cd tests
pytest -m "scenario"
- name: '[ScenarI/O] Python Tests with Valgrind'
shell: bash -i -e {0}
if: failure()
run: |
apt-get install -y --no-install-recommends valgrind
Expand All @@ -206,11 +208,13 @@ jobs:
valgrind --log-file=/tmp/valgrind.log pytest -s -m "scenario" || colour-valgrind -t /tmp/valgrind.log
- name: '[gym_ignition] Python Tests'
shell: bash -i -e {0}
run: |
cd tests
pytest -m "gym_ignition"
- name: '[gym_ignition] Python Tests with Valgrind'
shell: bash -i -e {0}
if: failure()
run: |
pip3 install colour-valgrind
Expand Down

0 comments on commit eee866d

Please sign in to comment.