-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (46 loc) · 1.41 KB
/
ci.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
name: CI
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@v4
with:
fetch-depth: 2
- name: Python info
shell: bash
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
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
- name: Install firedrake-ts
shell: bash
run: |
source /home/firedrake/firedrake/bin/activate
python -m pip install -e .
- name: Test with pytest
shell: bash
run: |
source /home/firedrake/firedrake/bin/activate
python -c "import sys; print('\n'.join(sys.path))"
python -m pytest --cov=firedrake_ts --cov-config=tests/.coveragerc tests/
bash <(curl -s https://codecov.io/bash)
- name: Coveralls
uses: coverallsapp/github-action@v2