Update to xeus 5 #258
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
defaults: | |
run: | |
shell: bash -l -eo pipefail {0} | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install mamba | |
uses: mamba-org/provision-with-micromamba@v13 | |
with: | |
environment-file: environment-dev.yml | |
environment-name: xeus-octave | |
cache-downloads: true | |
- name: Configure | |
run: cmake --preset conda-debug | |
- name: Build | |
run: cmake --build --preset conda-debug | |
- name: Install | |
run: cmake --install build/cmake/conda-debug | |
- name: Test | |
run: python -m pytest ./test -k 'not plot' | |
- name: Plotly toolkit test | |
run: python -m pytest ./test -k 'plot_plotly' | |
- name: Notebook toolkit test | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt-get update && sudo apt-get install libgl1-mesa-dev xvfb | |
xvfb-run python -m pytest ./test -k 'plot_notebook' | |
static-analysis: | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install mamba | |
uses: mamba-org/provision-with-micromamba@v13 | |
with: | |
environment-file: environment-dev.yml | |
environment-name: xeus-octave | |
cache-downloads: true | |
- name: Set PYTHON_HASH | |
run: echo "PYTHON_HASH=$(python -VV | sha256sum | cut -d' ' -f1)" >> $GITHUB_ENV | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.cache/pre-commit | |
key: precommit-v1-${{ env.PYTHON_HASH }}-${{ hashFiles('.pre-commit-config.yaml') }} | |
- name: Pre-commit hooks | |
run: python -m pre_commit run --all-files --show-diff-on-failure | |
test-doc: | |
runs-on: "ubuntu-latest" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install mamba | |
uses: mamba-org/provision-with-micromamba@v13 | |
with: | |
environment-file: environment-dev.yml | |
environment-name: xeus-octave | |
cache-downloads: true | |
- name: Build documentation | |
run: SPHINXOPTS="-W" make -C docs html | |
- name: Test documentation links | |
run: SPHINXOPTS="-W" make -C docs linkcheck |