Skip to content

Commit

Permalink
COMP: Replace pip with conda for notebook tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ntatsisk committed Jun 20, 2023
1 parent 6bf55b2 commit 77f62b8
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
11 changes: 11 additions & 0 deletions .binder/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: binder
channels:
- conda-forge
dependencies:
- python=3.9
- jupyter-server-proxy>=1.4
- pip
- websockify
- libxcb
- pip:
- jupyter-desktop-server
14 changes: 12 additions & 2 deletions .github/workflows/notebook-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,22 @@ jobs:
- uses: actions/setup-python@v3
with:
python-version: '3.9'
- name: Update conda
run: |
conda update -n base -c defaults conda
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
conda env update --file ./.binder/environment.yml --name binder
- name: Activate conda environment
run: |
source $CONDA/etc/profile.d/conda.sh
conda activate binder
- name: Install additional dependencies with pip
run: |
python -m pip install -r ./.binder/requirements.txt
python -m pip install pytest nbmake
- name: Test notebooks
shell: bash
run: |
pytest --nbmake --nbmake-timeout=3000 examples/*.ipynb

0 comments on commit 77f62b8

Please sign in to comment.