-
Notifications
You must be signed in to change notification settings - Fork 10
66 lines (52 loc) · 1.72 KB
/
build_uw3_and_test.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
name: Build and test UW3
# We should trigger this from an upload event. Note that pdoc requires us to import the
# built code, so this is a building test as well as documentation deployment
on:
push:
branches:
- main
- development
- Quick_Start_Docs
pull_request:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Conda environment with Micromamba
uses: mamba-org/setup-micromamba@v2
with:
environment-file: ./environment.yml
cache-downloads: true
cache-environment: true
# # gmsh is such a pig to install properly
# - name: Add gmsh package
# shell: bash -l {0}
# run: |
# pip install gmsh
- name: Build UW3
shell: bash -l {0}
run: |
export PETSC_DIR="/home/runner/micromamba/envs/uw3_test/lib"
VERSION=`python3 setup.py --version`
echo "UW - version " ${VERSION}
## TODO. Use compile.sh once it is in development
pip install -e . --no-build-isolation
## ./compile.sh
# Test - split into short, low memory tests 0???_*
# and longer, solver-based tests 1???_*
- name: Run pytest
shell: bash -l {0}
run: |
pytest tests/test_00??*py
pytest tests/test_0[1-9]??*py
# Poisson solver tests
pytest tests/test_100[0-9]*py
# Stokes solver tests
pytest tests/test_1010*py
pytest tests/test_1011*py
pytest tests/test_1050*py
# Advection/Diffusion solvers
pytest tests/test_1100*py
pytest tests/test_1110*py