Skip to content

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #74

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows

Bump actions/download-artifact from 2 to 4.1.7 in /.github/workflows #74

Workflow file for this run

name: examples
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
notebooks:
name: "${{ matrix.pymc-version }}"
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- pymc-version: "pymc3==3.9.3"
arviz-version: "arviz==0.11.1"
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true
- uses: actions/cache@v2
with:
path: ~/.theano
key: ${{ runner.os }}-${{ matrix.pymc-version }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-${{ matrix.pymc-version }}-
- name: Set up Python
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: starry_process
environment-file: environment.yml
- name: Set up environment
shell: bash -l {0}
run: |
jupyter nbextension enable --py widgetsnbextension
- name: Install dependencies
shell: bash -l {0}
run: |
python -m pip install -U pip
python -m pip install ${{ matrix.pymc-version }} ${{ matrix.arviz-version }} pymc3-ext
python -m pip install -e ".[docs]"
- name: Cache notebooks
id: cache-notebooks
uses: actions/cache@v2
with:
path: docs/notebooks
key: ${{ runner.os }}-${{ matrix.pymc-version }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-${{ matrix.pymc-version }}-
- name: Execute notebooks
shell: bash -l {0}
run: |
cd docs/notebooks
for f in *.ipynb; do jupyter nbconvert --to notebook --execute $f --output $f; done
- uses: actions/upload-artifact@v2
with:
name: notebooks-for-${{ github.sha }}
path: docs/notebooks
- name: Trigger RTDs build
uses: dfm/[email protected]
with:
webhook_url: ${{ secrets.RTDS_WEBHOOK_URL }}
webhook_token: ${{ secrets.RTDS_WEBHOOK_TOKEN }}
commit_ref: ${{ github.ref }}