CI fixes #202
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
################################################################################ | |
# AUTOGENERATED using openmapflow generate | |
################################################################################ | |
name: maize-test | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
paths: | |
- 'maize-example/**' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: maize-example | |
steps: | |
- name: Clone repo | |
uses: actions/checkout@v2 | |
- name: Set up python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: pip install -r requirements.txt | |
- name: dvc pull data | |
run: dvc pull -f | |
- name: Integration test - Project | |
run: | | |
openmapflow cp templates/integration_test_project.py . | |
python -m unittest integration_test_project.py | |
- name: Integration test - Data integrity | |
run: | | |
openmapflow cp templates/integration_test_datasets.py . | |
python -m unittest integration_test_datasets.py | |
- name: Integration test - Train and evaluate | |
run: | | |
openmapflow cp templates/integration_test_train_evaluate.py . | |
python -m unittest integration_test_train_evaluate.py |