Run nightly on schedule and push on main now that release deploys web… #50
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: | |
push: | |
branches: | |
- main | |
workflow_call: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
schedule: | |
- cron: "0 8 * * *" | |
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 --break-system-packages .[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 | |
- name: Upload coverage report as artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: code-coverage-report | |
path: htmlcov | |
if-no-files-found: error |