-
Notifications
You must be signed in to change notification settings - Fork 66
65 lines (53 loc) · 1.49 KB
/
pyclaw_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
name: Test Riemann solvers with PyClaw tests
on:
push:
branches: [ "implicit_none" ]
pull_request:
branches: [ "implicit_none" ]
workflow_dispatch:
permissions:
contents: read
env:
CLAW: ${{ github.workspace }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install gfortran
python -m pip install --upgrade pip
pip install 'numpy<2.0'
pip install matplotlib #Some imports require matplotlib
pip install scipy #To not skip tests
pip install flake8 meson-python ninja pytest
- name: Checkout Clawpack
uses: actions/[email protected]
with:
repository: clawpack/clawpack
submodules: true
- name: Checkout PyClaw branch
uses: actions/[email protected]
with:
repository: clawpack/pyclaw #
path: pyclaw
ref: master
- name: Checkout implicit_none from this repo
uses: actions/[email protected]
with:
repository: ${{ github.repository }}
path: ${{ env.CLAW }}/riemann
ref: implicit_none
- name: Install Clawpack
run: |
cd ${CLAW}
pip install --no-build-isolation --editable .
- name: Test with pytest
run: |
cd ${CLAW}/pyclaw
pytest --ignore=development --ignore=examples/shallow_sphere