Skip to content

Commit

Permalink
build doc workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed Jul 2, 2024
1 parent 3009983 commit c56f610
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Automatic Tests
'on':
push:
branches:
- main
pull_request: {}
defaults:
run:
shell: bash -el {0}
concurrency:
group: test-${{github.ref}}
cancel-in-progress: true
jobs:
build:
name: Build documentation
runs-on: ubuntu-lates
stages:
- name: 🛒 Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- id: setup-env
name: 📦 Set up Conda environment
uses: mamba-org/setup-micromamba@v1
with:
environment-file: docs/environment.yml
environment-name: lkpy
init-shell: bash
- id: install
name: 🍱 Install LensKit packages
run: |
pip install --no-deps -e lenskit -e lenskit-funksvd -e lenskit-implicit
- id: docs
name: 📚 Build documentation site
run: |
just docs
- name: 📤 Package documentation site
uses: actions/upload-artifact@v4
with:
name: lenskit-docs
path: build/doc
1 change: 1 addition & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,5 @@ update-headers:
# update GH workflows
update-workflows:
python -m lkdev.ghactions --render test
python -m lkdev.ghactions --render docs
-pre-commit run --files .github/workflows/*.yml

0 comments on commit c56f610

Please sign in to comment.