-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (32 loc) · 1.05 KB
/
test_suite.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: 'Run Animate 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'
concurrency:
# Cancel jobs running if new commits are pushed
group: >
${{ github.workflow }}-
${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test_suite:
uses: mesh-adaptation/mesh-adaptation-docs/.github/workflows/reusable_test_suite.yml@45_reusing_workflows
with:
install-command: 'python -m pip uninstall -y animate && python -m pip install -e .'
test-command: |
export GITHUB_ACTIONS_TEST_RUN=1
python $(which firedrake-clean)
export ANIMATE_CHECKPOINT_DIR=$(pwd)/.checkpoints
python -m coverage erase
python -m coverage run --source=animate -m pytest -v --durations=20 test
python -m coverage report
changed-files-patterns: |
**/*.py
**/*.cxx