Skip to content

Commit

Permalink
Add Docs workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
niklassiemer committed Jul 7, 2022
1 parent c79b573 commit 1838397
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This workflow is used to test, if the documentation can build

name: Docs

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: "3.10"
mamba-version: "*"
channels: conda-forge
channel-priority: strict
auto-update-conda: true
environment-file: .ci_support/environment.yml
- name: Setup
shell: bash -l {0}
run: |
python .ci_support/pyironconfig.py
pip install --no-deps .
conda env update --name test --file docs/environment.yml
- name: Documentation
shell: bash -l {0}
run: |
mkdir public_html; cd docs
sphinx-build -b html ./ ../public_html || exit 1;
cd ..

0 comments on commit 1838397

Please sign in to comment.