Skip to content

Commit

Permalink
update binder environment and include it in github action tests (#93)
Browse files Browse the repository at this point in the history
* update binder environment and include it in github action tests

* binder test: set REPO_DIR
  • Loading branch information
jornbr authored Oct 15, 2024
1 parent fb8b852 commit d5c3bdb
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .binder/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: fabm
channels:
- conda-forge
dependencies:
- python=3.8
- python
- pip
- fortran-compiler
- gfortran
- cmake
- jupyterlab
- numpy
Expand Down
Empty file modified .binder/postBuild
100644 → 100755
Empty file.
21 changes: 21 additions & 0 deletions .github/workflows/fabm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -372,3 +372,24 @@ jobs:
run: |
cmake -S . -B build -G Ninja
cmake --build build --target install
binder:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
steps:
- name: Clone repository
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python with conda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
environment-file: .binder/environment.yml
activate-environment: fabm
- name: Install
run: .binder/postBuild
env:
REPO_DIR: .

0 comments on commit d5c3bdb

Please sign in to comment.