-
Notifications
You must be signed in to change notification settings - Fork 15
75 lines (68 loc) · 3.52 KB
/
python-tests.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
68
69
70
71
72
73
74
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python tests
on: [push, pull_request]
permissions:
contents: read
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- name: Running serial tests
run: |
source /home/olender/firedrakes/2024_09_11/firedrake/bin/activate
pytest --cov-report=xml --cov=spyro test/
- name: Running parallel 3D forward test
run: |
source /home/olender/firedrakes/2024_09_11/firedrake/bin/activate
mpiexec -n 6 pytest test_3d/test_hexahedral_convergence.py
mpiexec -n 6 pytest test_parallel/test_forward.py
mpiexec -n 6 pytest test_parallel/test_fwi.py
mpiexec -n 6 pytest test_parallel/test_forward_supershot.py
mpiexec -n 2 pytest test_parallel/test_parallel_io.py
mpiexec -n 3 pytest test_parallel/test_supershot_grad.py
mpiexec -n 2 pytest test_parallel/test_forward_multiple_serial_shots.py
mpiexec -n 2 pytest test_parallel/test_gradient_serialshots.py
- name: Covering parallel 3D forward test
continue-on-error: true
run: |
source /home/olender/firedrakes/2024_09_11/firedrake/bin/activate
mpiexec -n 6 pytest --cov-report=xml --cov-append --cov=spyro test_3d/test_hexahedral_convergence.py
- name: Covering parallel forward test
continue-on-error: true
run: |
source /home/olender/firedrakes/2024_09_11/firedrake/bin/activate
mpiexec -n 6 pytest --cov-report=xml --cov-append --cov=spyro test_parallel/test_forward.py
- name: Covering parallel fwi test
continue-on-error: true
run: |
source /home/olender/firedrakes/2024_09_11/firedrake/bin/activate
mpiexec -n 6 pytest --cov-report=xml --cov-append --cov=spyro test_parallel/test_fwi.py
- name: Covering parallel supershot test
continue-on-error: true
run: |
source /home/olender/firedrakes/2024_07_19/firedrake/bin/activate
mpiexec -n 6 pytest --cov-report=xml --cov-append --cov=spyro test_parallel/test_forward_supershot.py
- name: Covering parallel io test
continue-on-error: true
run: |
source /home/olender/firedrakes/2024_07_19/firedrake/bin/activate
mpiexec -n 2 pytest --cov-report=xml --cov-append --cov=spyro test_parallel/test_parallel_io.py
- name: Covering parallel supershot grad test
continue-on-error: true
run: |
source /home/olender/firedrakes/2024_07_19/firedrake/bin/activate
mpiexec -n 3 pytest --cov-report=xml --cov-append --cov=spyro test_parallel/test_supershot_grad.py
- name: Covering spatially parallelized shots in serial
continue-on-error: true
run: |
source /home/olender/firedrakes/2024_07_19/firedrake/bin/activate
mpiexec -n 2 pytest --cov-report=xml --cov-append --cov=spyro test_parallel/test_forward_multiple_serial_shots.py
- name: Covering spatially parallelized shots in serial
continue-on-error: true
run: |
source /home/olender/firedrakes/2024_07_19/firedrake/bin/activate
mpiexec -n 2 pytest --cov-report=xml --cov-append --cov=spyro test_parallel/test_test_gradient_serialshots.py
- name: Uploading coverage to Codecov
run: export CODECOV_TOKEN="6cd21147-54f7-4b77-94ad-4b138053401d" && bash <(curl -s https://codecov.io/bash)