Skip to content

Commit

Permalink
Fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
benjeffery committed Dec 16, 2024
1 parent 94184a8 commit 1d248eb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 25 deletions.
38 changes: 14 additions & 24 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,6 @@ on:
tags:
- '*'

env:
COMMIT_EMAIL: [email protected]
MAKE_TARGET: -C python
OWNER: tskit-dev
REPO: tskit
REQUIREMENTS: python/requirements/CI-docs/requirements.txt

jobs:
build-deploy-docs:
name: Docs
Expand All @@ -29,26 +22,23 @@ jobs:

- uses: actions/checkout@v4

- name: Setup Conda
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
activate-environment: tskit-docs-env

- name: Cache Conda env
uses: actions/cache@v4
- uses: actions/[email protected]
with:
path: ${{ env.CONDA }}/envs
key: conda-${{ runner.os }}--${{ runner.arch }}--${{ hashFiles(env.REQUIREMENTS) }}-${{ env.CACHE_NUMBER }}
env:
CACHE_NUMBER: 0
id: cache
python-version: "3.11"
cache: "pip"

- name: Update environment
- name: Create venv and install deps (one by one to avoid conflict errors)
run: |
mamba install -y python=3.12 doxygen pip
pip install -r ${{ env.REQUIREMENTS }}
if: steps.cache.outputs.cache-hit != 'true'
pip install --upgrade pip wheel
pip install -r requirements/CI-docs-pip/requirements.txt
- name: Build Docs
run: make -C docs

- name: Trigger docs site rebuild
if: github.ref == 'refs/heads/main'
run: |
curl -X POST https://api.github.com/repos/tskit-dev/tskit-site/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \
-u AdminBot-tskit:${{ secrets.ADMINBOT_TOKEN }} \
--data '{"event_type":"build-docs"}'
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python: [ 3.9, 3.12 ]
python: [ 3.10, 3.12 ]
os: [ macos-latest, ubuntu-24.04, windows-latest ]
defaults:
run:
Expand Down
1 change: 1 addition & 0 deletions requirements/CI-docs-pip/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ sphinx-issues==4.1.0
sphinx-argparse==0.4.0
svgwrite==1.4.3
tskit==0.6.0
tsinfer==0.3.3
scipy==1.14.1
msprime==1.3.2
sphinx-book-theme
Expand Down

0 comments on commit 1d248eb

Please sign in to comment.