-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from pyroteus/21_hook_up_actions
Hook up GitHub Actions
- Loading branch information
Showing
6 changed files
with
83 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
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 pytest -n 3 -v test | ||
- name: Lint | ||
if: ${{ always() }} | ||
run: | | ||
. /home/firedrake/firedrake/bin/activate | ||
make lint |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
all: install | ||
|
||
.PHONY: test | ||
|
||
install: | ||
@echo "Installing dependencies..." | ||
@python3 -m pip install -r requirements.txt | ||
@echo "Done." | ||
@echo "Installing Movement..." | ||
@python3 -m pip install -e . | ||
@echo "Done." | ||
|
||
lint: | ||
@echo "Checking lint..." | ||
@flake8 --ignore=E501,E226,E402,E731,E741,F403,F405,F999,N803,N806,W503 | ||
@echo "PASS" | ||
|
||
test: lint | ||
@echo "Running test suite..." | ||
@pytest -v test | ||
@echo "PASS" | ||
|
||
tree: | ||
@tree -d . |
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
Empty file.
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
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