Skip to content

Commit

Permalink
Drop deprecated GitHub actions commands
Browse files Browse the repository at this point in the history
  • Loading branch information
francesco-ballarin committed Nov 16, 2023
1 parent 9c15f6c commit 1d004e6
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down

0 comments on commit 1d004e6

Please sign in to comment.