Skip to content

using install script instead of git checkout #307

using install script instead of git checkout

using install script instead of git checkout #307

Workflow file for this run

name: unit-tests
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- main
- development
pull_request:
branches:
- main
- development
jobs:
build:
runs-on: ubuntu-latest
env:
PROJECT_NAME: fancy_new_project
steps:
- name: install using script
run: |
bash <(curl -s https://raw.githubusercontent.com/mila-iqia/cookiecutter-pyml/use_install_script_in_ci/scripts/quick_install.sh) --project-name $PROJECT_NAME
- name: python-3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: linting checks
working-directory: ./$PROJECT_NAME
run: |
python -m pip install --upgrade pip
pip install flake8 flake8-docstrings isort
sh hooks/pre-commit
- name: install project dependencies
working-directory: ./$PROJECT_NAME
run: |
pip install -e .
- name: unit tests
working-directory: ./$PROJECT_NAME
run: |
pytest --cov=amlrt-project
- name: pytorch-end2end-single
working-directory: ./$PROJECT_NAME
run: |
./tests/end2end_pytorch/run_single.sh
- name: pytorch-end2end-orion
working-directory: ./$PROJECT_NAME
run: |
./tests/end2end_pytorch/run_orion.sh
- name: type checking
working-directory: ./$PROJECT_NAME
run: |
pytype $PROJECT_NAME
- name: doc-creation-test
working-directory: ./$PROJECT_NAME
run: |
./tests/test_docs/run.sh