Skip to content

Test building site with conda environment #203

Test building site with conda environment

Test building site with conda environment #203

Workflow file for this run

name: Test building site with conda environment
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 5 * * 1'
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [ubuntu, macos, windows]
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca # v3.0.4
with:
auto-update-conda: true
activate-environment: numpy-tutorials
environment-file: environment.yml
miniforge-variant: Mambaforge
miniforge-version: latest
use-mamba: true
python-version: "3.11"
auto-activate-base: false
- name: inspect and build
id: build_step
continue-on-error: true
run: |
conda info
conda list
make -C site/ SPHINXOPTS="-nWT --keep-going" html
- uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
with:
name: sphinx-build-artifact
path: site/_build/html/reports
- name: fail on build errors
if: steps.build_step.outcome != 'success'
run: exit 1