Skip to content

Quarto dev

Quarto dev #64

Workflow file for this run

name: Test Notebooks
on:
push:
paths:
- notebooks/**
- binder/**
- '.github/workflows/'
pull_request:
types: [opened, synchronize]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
posix:
name: Runtime (${{ matrix.os }}, Mambaforge)
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: ["ubuntu", "macos"]
include:
- os: ubuntu
environment-file: binder/conda-linux-64.lock
miniforge-variant: Mambaforge
miniforge-version: latest
- os: macos
environment-file: binder/conda-osx-64.lock
miniforge-variant: Mambaforge
miniforge-version: latest
steps:
- uses: actions/checkout@v3
- name: Cache conda
uses: actions/cache@v3
env:
# Increase this value to reset cache if etc/example-environment.yml has not changed
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key:
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{
hashFiles(format('{0}', matrix.environment-file)) }}
- uses: conda-incubator/setup-miniconda@v2
with:
environment-file: ${{ matrix.environment-file }}
miniforge-variant: ${{ matrix.miniforge-variant }}
miniforge-version: ${{ matrix.miniforge-version }}
use-mamba: true
- name: Bash
shell: bash -l {0}
run: |
printenv | sort
find notebooks -type f -iname \*.ipynb -not -path '*\.ipynb_checkpoints/*' -not -path "*/iceflow/*" | xargs -I % python .github/workflows/scan_notebooks.py -n %
windows:
name: Runtime Windows Mambaforge
runs-on: windows-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
environment-file: binder/conda-win-64.lock
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true
- name: bash
shell: bash
run: |
conda info
conda list
printenv | sort
find notebooks -type f -iname \*.ipynb -not -path '*\.ipynb_checkpoints/*' -not -path "*/iceflow/*" | xargs -I % python .github/workflows/scan_notebooks.py -n %