-
Notifications
You must be signed in to change notification settings - Fork 5
63 lines (53 loc) · 1.52 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: 'Run Movement 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:
build:
name: 'Test suite'
# The type of runner that the job will run on
runs-on: ubuntu-latest
# The docker container to use.
container:
image: jwallwork/firedrake-parmmg:latest
options: --user root
steps:
- uses: actions/checkout@v2
- name: 'Cleanup'
if: ${{ always() }}
run: |
cd ..
rm -rf build
- name: 'Setup python'
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: 'Install Movement'
run: |
. /home/firedrake/firedrake/bin/activate
python -m pip uninstall -y movement
python -m pip install -e .
- name: 'Check citation'
run: |
. /home/firedrake/firedrake/bin/activate
make check_citation
- name: 'Lint'
if: ${{ always() }}
run: |
. /home/firedrake/firedrake/bin/activate
make lint
- name: 'Test Movement'
run: |
. /home/firedrake/firedrake/bin/activate
export GITHUB_ACTIONS_TEST_RUN=1
python $(which firedrake-clean)
python -m coverage erase
python -m coverage run --source=movement -m pytest -v --durations=20 test
python -m coverage report