Skip to content

Commit

Permalink
Merge pull request #203 from econ-ark/move-to-mamba-for-CI
Browse files Browse the repository at this point in the history
Use micromamba in CI and drop py3.8
  • Loading branch information
alanlujan91 committed Apr 18, 2023
2 parents b5db6f0 + e5a6140 commit 9bd93fa
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,18 @@ jobs:
max-parallel: 12
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10"]
python-version: ["3.9", "3.10", "3.11"]

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
- uses: actions/checkout@v2

- name: Setup mamba environment to run notebooks
uses: mamba-org/provision-with-micromamba@main
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r binder/requirements.txt
environment-file: binder/environment.yml
extra-specs: |
pytest
- name: Test with nbval
shell: bash -l {0}
run: |
pip install pytest
pytest --nbval-lax --nbval-cell-timeout=12000 --ignore=notebooks/Chinese-Growth.ipynb notebooks/
python -m pytest --nbval-lax --nbval-cell-timeout=12000 --ignore=notebooks/Chinese-Growth.ipynb notebooks/

0 comments on commit 9bd93fa

Please sign in to comment.