Skip to content

Commit

Permalink
Add workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
danshapero committed Jan 20, 2024
1 parent 1325d1f commit d2fd19d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: 'Run tests'
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
container:
image: docker.io/firedrakeproject/firedrake-vanilla:2023-09
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
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

0 comments on commit d2fd19d

Please sign in to comment.