-
Notifications
You must be signed in to change notification settings - Fork 21
36 lines (33 loc) · 918 Bytes
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Build Docs
on: [push, pull_request]
# cancels prior builds for this workflow when new commit is pushed
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build and run tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ['3.12']
defaults:
run:
shell: bash -el {0}
steps:
- name: Checkout Opty
uses: actions/checkout@v4
- name: Setup Conda environment
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
environment-file: opty-dev-env.yml
activate-environment: opty-dev
python-version: ${{ matrix.python-version }}
- name: Build Docs
run: |
cd docs
# fail on any warnings
make html SPHINXOPTS="-W"