Skip to content

Commit

Permalink
Update workflow for running tests
Browse files Browse the repository at this point in the history
  • Loading branch information
finsberg committed Apr 3, 2024
1 parent 34596df commit 0a71c79
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,16 @@ jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
container:
[
"ghcr.io/scientificcomputing/fenics-gmsh:2023-08-16",
"finsberg/pyadjoint-extra",
]

container:
image: ${{ matrix.container }}
image: "ghcr.io/scientificcomputing/fenics-gmsh:2024-02-19"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Cache
id: cache-primes
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.cache/instant
Expand All @@ -40,9 +33,10 @@ jobs:
- name: Test with pytest
uses: nick-invision/retry@v2
with:
timeout_minutes: 120
max_attempts: 5
retry_on: error
command: python3 -m pytest
run: python3 -m pytest

- name: Install dolfin-adjoint
run: python3 -m pip install dolfin-adjoint

- name: Test with pyadjoint
run: python3 -m pytest

0 comments on commit 0a71c79

Please sign in to comment.