ci: workflow for caching of binder build added.

This commit is contained in:
Fabian Joswig 2022-05-22 12:02:33 +01:00
parent 9666011781
commit f62581ba69
2 changed files with 18 additions and 3 deletions

15
.github/workflows/binder.yml vendored Normal file
View file

@ -0,0 +1,15 @@
name: binder
on:
push:
branches:
- develop
jobs:
Create-MyBinderOrg-Cache:
runs-on: ubuntu-latest
steps:
- name: cache binder build on mybinder.org
uses: jupyterhub/repo2docker-action@master
with:
NO_PUSH: true
MYBINDERORG_TAG: ${{ github.event.ref }} # This builds the container on mybinder.org with the branch that was pushed on.

View file

@ -13,15 +13,15 @@ jobs:
pytest:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
fail-fast: true
matrix:
os: [ubuntu-latest]
python-version: ["3.7", "3.8", "3.9", "3.10"]
include:
- os: macos-latest
python-version: 3.9
python-version: 3.9
- os: windows-latest
python-version: 3.9
python-version: 3.9
steps:
- name: Checkout source