Add stable workflow that should be customized for latest non-api-breaking change #35
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test package against nightly image | |
on: | |
workflow_call: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
env: | |
DEB_PYTHON_INSTALL_LAYOUT: deb_system | |
jobs: | |
tests: | |
runs-on: ubuntu-22.04 | |
container: ghcr.io/fenics/dolfinx/dolfinx:nightly | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Install oasisx" | |
run: python3 -m pip install .[test,docs] | |
- 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 | |
- name: Upload coverage report as artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: code-coverage-report | |
path: htmlcov | |
if-no-files-found: error |