-
Notifications
You must be signed in to change notification settings - Fork 3
62 lines (55 loc) · 1.88 KB
/
tests.yaml
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
name: CI test
# Trigger the workflow on push and daily cron job
on:
push:
schedule:
- cron: '5 0 * * *'
jobs:
shellcheck:
# See https://github.com/koalaman/shellcheck/wiki
# for explanations of ShellCheck error codes
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: ShellCheck
run: |
shellcheck -x $(find -name '*.sh')
build:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-12]
steps:
- uses: actions/checkout@v4
- name: Install prerequisites
run: |
[[ $(uname) == Linux ]] && sudo apt-get update && sudo apt-get install -y openmpi-bin libopenmpi-dev libgl1-mesa-glx libegl1
[[ $(uname) == Darwin ]] && brew install openmpi
./install.sh
- name: Version info
run: |
source miniforge3/bin/activate ceesd
./version.sh --requirements-file=./mirgecom/requirements.txt --output-requirements=myreq.txt --output-conda-env=myenv.yml
# Don't build pyopencl as that is difficult
cat myreq.txt | sed /pyopencl/d > req.txt
pip install -r req.txt
# FIXME: disabled until https://github.com/conda-forge/pocl-feedstock/pull/96 is resolved
# - name: Run update
# run: |
# ./pull-packages.sh -x
- name: Reinstall emirge env with new requirements.txt
run: |
source miniforge3/bin/activate ceesd
conda clean -a
conda deactivate
./install.sh --env-name=reinstall_env --pip-pkgs=req.txt
# FIXME: Disabled until the next mpi4py release (v4)
# - name: Reinstall conda env with new env file
# run: |
# ./install.sh --conda-env=myenv.yml --pip-pkgs=req.txt
- name: Run examples
run: |
source miniforge3/bin/activate ceesd
./mirgecom/examples/run_examples.sh ./mirgecom/examples