Skip to content

Visualization

Visualization #4

Workflow file for this run

name: domain plots
on:
push:
branches:
- "main"
pull_request:
branches:
- "*"
# This job installs dependencies, build the book, and pushes it to `gh-pages`
jobs:
build-and-deploy-book:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- name: Set environment variables
run: |
echo "CONDA_ENV_FILE=plotting/environment.yml" >> $GITHUB_ENV
echo "PYTHON_VERSION=${{ matrix.python-version }}" >> $GITHUB_ENV
- name: Create conda environment
uses: mamba-org/provision-with-micromamba@main
with:
cache-downloads: true
cache-downloads-key: "${{runner.os}}-${{runner.arch}}-py${{matrix.python-version}}-${{hashFiles(env.CONDA_ENV_FILE)}}"
micromamba-version: 'latest'
environment-file: plotting/environment.yml
extra-specs: |
python=${{ matrix.python-version }}
- name: Version info
run: |
conda info -a
conda list
- name: Create domain plots
run: |
python plotting/create-domain-plots.py html
# Build the book
- name: Build the book
run: |
jupyter-book build archive-specifications
# Deploy the book's HTML to gh-pages branch
- name: GitHub Pages action
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: plotting/_build/html