add workflow for CI with docker #2
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 KNP-EMI code via docker | |
on: | |
workflow_dispatch: | |
workflow_call: | |
pull_request: | |
branches: ["main"] | |
push: | |
branches: ["**"] | |
env: | |
DEB_PYTHON_INSTALL_LAYOUT: deb_system | |
defaults: | |
run: | |
shell: bash -el {0} | |
jobs: | |
test_scripts: | |
runs-on: ubuntu-latest | |
container: ghcr.io/scientificcomputing/fenics:2024-02-19 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install package | |
run: | | |
python3 -m pip install . | |
- name: Run test (MMS) | |
run: | | |
python3 ./src/run_MMS_space.py |