diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 52a8f60..e3bf286 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,23 +67,15 @@ jobs: - name: Run documentation generation run: | cd docs && make html - - name: Determine coverage and pytest options for unit tests - id: unit_options + - name: Run unit tests (serial) run: | COVERAGE_UNIT_OMIT="" PYTEST_UNIT_OPTIONS="" - echo "::set-output name=coverage_omit::${COVERAGE_UNIT_OMIT}" - echo "::set-output name=pytest_options::${PYTEST_UNIT_OPTIONS}" - shell: bash - - name: Run unit tests (serial) - run: | - COVERAGE_UNIT_OMIT="${{ steps.unit_options.outputs.coverage_omit }}" - PYTEST_UNIT_OPTIONS="${{ steps.unit_options.outputs.pytest_options }}" COVERAGE_FILE=.coverage_unit_serial python3 -m coverage run --source=rbnicsx --omit="${COVERAGE_UNIT_OMIT}" -m pytest ${PYTEST_UNIT_OPTIONS} tests/unit - name: Run unit tests (parallel) run: | - COVERAGE_UNIT_OMIT="${{ steps.unit_options.outputs.coverage_omit }}" - PYTEST_UNIT_OPTIONS="${{ steps.unit_options.outputs.pytest_options }}" + COVERAGE_UNIT_OMIT="" + PYTEST_UNIT_OPTIONS="" COVERAGE_FILE=.coverage_unit_parallel mpirun -n 2 python3 -m coverage run --source=rbnicsx --parallel-mode --omit="${COVERAGE_UNIT_OMIT}" -m pytest ${PYTEST_UNIT_OPTIONS} tests/unit - name: Combine coverage reports run: |