-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 1.24 KB
/
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
name: 'Run tests'
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
version: [2023-09, 2023-10, 2023-11, 2023-12]
runs-on: ubuntu-latest
container:
image: docker.io/firedrakeproject/firedrake-vanilla:${{ matrix.version }}
options: --user root
steps:
- name: Activate Firedrake virtual environment
run: |
. /home/firedrake/firedrake/bin/activate
echo PATH=$PATH >> $GITHUB_ENV
- name: Install dependencies
run: |
apt update
apt install -yq patchelf
pip install netCDF4 matplotlib
pip install git+https://github.com/icepack/Trilinos.git
pip install git+https://github.com/icepack/pyrol.git
pip install git+https://github.com/icepack/icepack.git
- name: Check out git repository
uses: actions/checkout@v3
- name: Run tests
env:
EARTHDATA_USERNAME: ${{ secrets.EARTHDATA_USERNAME }}
EARTHDATA_PASSWORD: ${{ secrets.EARTHDATA_PASSWORD }}
run: |
python initialize.py
python make_plot.py
- name: Upload result
uses: actions/upload-artifact@v3
with:
name: kangerdlugssuaq
path: kangerdlugssuaq.png