Use the UM2N Docker image #20
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'Run UM2N Test Suite' | |
on: | |
# Run test suite whenever main is updated | |
push: | |
branches: | |
- main | |
# Run test suite whenever commits are pushed to an open PR | |
pull_request: | |
# Run test suite every Sunday at 1AM | |
schedule: | |
- cron: '0 1 * * 0' | |
jobs: | |
test_suite: | |
uses: mesh-adaptation/mesh-adaptation-docs/.github/workflows/reusable_test_suite.yml@66_docker-switch-reusable-tests | |
with: | |
install-command: 'python -m pip uninstall -y UM2N && python -m pip install -e .' | |
test-command: | | |
export GITHUB_ACTIONS_TEST_RUN=1 | |
python $(which firedrake-clean) | |
python -m coverage erase | |
python -m coverage run -a --source=UM2N -m pytest -v --durations=20 test | |
python -m coverage report | |
changed-files-patterns: | | |
**/*.py | |
**/*.msh | |
**/*.geo | |
docker-image: firedrake-um2n |