Skip to content

Commit

Permalink
CI: Separate unit and function tests in two steps
Browse files Browse the repository at this point in the history
  • Loading branch information
remram44 committed Jun 30, 2021
1 parent 083c687 commit ea84fce
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,20 @@ jobs:
else
pip install ./reprozip-core ./reprozip ./reprounzip ./reprounzip-docker ./reprounzip-vagrant ./reprounzip-vistrails ./reprounzip-qt -e ./reprozip-jupyter
fi
- name: Test
- name: Unit tests
run: |
export PYTHONUNBUFFERED=1
if [ "$TEST_MODE" = "coverage" ]; then
export COVER="coverage run --append --source=$PWD --branch"
fi
python tests --run-docker
python tests --unittests
- name: Functional test
run: |
export PYTHONUNBUFFERED=1
if [ "$TEST_MODE" = "coverage" ]; then
export COVER="coverage run --append --source=$PWD --branch"
fi
python tests --functests --run-docker
- name: Upload coverage
if: matrix.mode == 'coverage'
run: |
Expand Down

0 comments on commit ea84fce

Please sign in to comment.