This repository has been archived by the owner on Oct 31, 2024. It is now read-only.
[pre-commit.ci] pre-commit autoupdate #603
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: Continuous Integration | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: ose-course-data-science | |
environment-file: environment.yml | |
python-version: 3.7 | |
auto-activate-base: false | |
- name: run project | |
shell: bash -l {0} | |
run: | | |
export PATH="$PATH:/usr/share/miniconda/bin" | |
source .envrc | |
git submodule update --init --recursive | |
run-project | |
py.test | |
- name: check notebook formatting | |
shell: bash -l {0} | |
run: | | |
export PATH="$PATH:/usr/share/miniconda/bin" | |
source .envrc | |
flake8-nb; [ $? -eq 0 ] || exit 1 | |
black-nb --check .; [ $? -eq 0 ] || exit 1 | |
- name: execute selected scripts | |
shell: bash -l {0} | |
run: | | |
export PATH="$PATH:/usr/share/miniconda/bin" | |
source .envrc | |
cd problem-sets/potential-outcome-model/data; python data-generation.py; cd $PROJECT_ROOT | |
cd problem-sets/regression-discontinuity-design; python auxiliary.py; cd $PROJECT_ROOT | |
cd figures; jupyter nbconvert --to html --execute figures.ipynb; cd $PROJECT_ROOT |