Skip to content

Test building site with conda environment #236

Test building site with conda environment

Test building site with conda environment #236

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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- uses: conda-incubator/setup-miniconda@a4260408e20b96e80095f42ff7f1a15b27dd94ca # v3.0.4
with:
auto-update-conda: true
activate-environment: numpy-tutorials
environment-file: environment.yml
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@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: sphinx-build-artifact
path: site/_build/html/reports
- name: fail on build errors
if: steps.build_step.outcome != 'success'
run: exit 1