-
Notifications
You must be signed in to change notification settings - Fork 2
67 lines (57 loc) · 1.86 KB
/
ci-firedrake.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
64
65
66
67
name: Firedrake
on:
push:
branches:
- master
pull_request:
jobs:
test:
runs-on: ubuntu-latest
container:
image: docker://firedrakeproject/firedrake-vanilla:latest
options: --user root
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- name: Python info
shell: bash -l {0}
run: |
source /home/firedrake/firedrake/bin/activate
which python
python -c "import sys; print('\n'.join(sys.path))"
python -c "from firedrake import *"
- name: Install dependencies
shell: bash -l {0}
run: |
source /home/firedrake/firedrake/bin/activate
python -m pip install --upgrade pip
python -m pip install pytest
python -m pip install pytest-cov
python -m pip install pytest-check
python -m pip install coveralls
python -m pip install git+https://github.com/dolfin-adjoint/pyadjoint.git@master
python -m pip install fdm
- name: Install current package
shell: bash -l {0}
run: |
source /home/firedrake/firedrake/bin/activate
python -m pip install -e .
- name: Test with pytest
shell: bash -l {0}
run: |
source /home/firedrake/firedrake/bin/activate
python -c "import sys; print('\n'.join(sys.path))"
python -m pytest --cov=fecr --cov-config=tests/.coveragerc tests/firedrake_backend -vvv
- name: Send coveralls
shell: bash -l {0}
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
run: |
source /home/firedrake/firedrake/bin/activate
coveralls
- name: Send codecov
shell: bash -l {0}
run: |
source /home/firedrake/firedrake/bin/activate
bash <(curl -s https://codecov.io/bash)