Merge pull request #49 from pyroteus/26_spring_demo #28
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: Build Movement | |
on: | |
# Push to main or PR | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
build: | |
name: "Build Movement" | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# The docker container to use. | |
container: | |
image: firedrakeproject/firedrake-vanilla:latest | |
options: --user root | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cleanup | |
if: ${{ always() }} | |
run: | | |
cd .. | |
rm -rf build | |
- name: Setup python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install | |
run: | | |
. /home/firedrake/firedrake/bin/activate | |
python -m pip install -r requirements.txt | |
python -m pip install -e . | |
- name: Test | |
run: | | |
. /home/firedrake/firedrake/bin/activate | |
python $(which firedrake-clean) | |
python -m coverage erase | |
python -m coverage run --source=movement -m pytest -v --durations=20 test | |
python -m coverage report | |
- name: Lint | |
if: ${{ always() }} | |
run: | | |
. /home/firedrake/firedrake/bin/activate | |
make lint |