-
Notifications
You must be signed in to change notification settings - Fork 8
42 lines (36 loc) · 877 Bytes
/
main.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
name: CI
on:
push:
# The CI is executed on every push on every branch
branches:
- main
pull_request:
# The CI is executed on every pull request to the main branch
branches:
- main
jobs:
test:
name: Test
runs-on: ubuntu-latest
container:
image: ghcr.io/scientificcomputing/fenics-gmsh:2023-08-16
steps:
- uses: actions/checkout@v3
- name: Cache
id: cache-primes
uses: actions/cache@v3
with:
path: |
~/.cache/instant
~/.cache/dijitso
~/.cache/pip
key: cache_v2
restore-keys: |
cache_v2
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -e ".[test]"
- name: Test with pytest
run: |
python3 -m pytest