-
Notifications
You must be signed in to change notification settings - Fork 9
38 lines (34 loc) · 1.02 KB
/
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
name: Build physics-driven-ml
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
concurrency:
# Cancels jobs running if new commits are pushed
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
container:
image: firedrakeproject/firedrake-vanilla:latest
options: --user root
steps:
- uses: actions/checkout@v2
- name: Install torch
shell: bash -l {0}
run: |
source /home/firedrake/firedrake/bin/activate
python -m pip install torch --extra-index-url https://download.pytorch.org/whl/cpu
- name: Install physics-driven-ml
shell: bash -l {0}
run: |
source /home/firedrake/firedrake/bin/activate
python -m pip install --upgrade pip
python -m pip install -e .
- name: Test with pytest
shell: bash -l {0}
run: |
source /home/firedrake/firedrake/bin/activate
python -m pytest ./tests/