generated from scientificcomputing/example-python-package
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (32 loc) · 906 Bytes
/
test_stable.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
name: Test package against stable release
on:
workflow_call:
workflow_dispatch:
pull_request:
branches:
- main
push:
branches:
- main
env:
DEB_PYTHON_INSTALL_LAYOUT: deb_system
jobs:
tests:
runs-on: ubuntu-22.04
container: ghcr.io/fenics/dolfinx/dolfinx:stable
steps:
- name: Checkout at last working position
uses: actions/checkout@v4
# with:
# ref: v1.0.0
# ${{ github.ref }} # once backward compatibility is broken this should be pinned to a release
- name: Install oasisx
run: python3 -m pip install .[test,docs]
- name: Run formatting checks
uses: ./.github/actions/linting
- name: Run tests
run: python3 -m pytest
- name: Run demos
run: |
python3 demo/taylor_green.py -N 8 -N 16 -N 32 -dt=0.005
python3 demo/assembly_strategies.py