Skip to content

Create Github Action to automatically test everything in tests directory, and move tests to test directory. #28

Create Github Action to automatically test everything in tests directory, and move tests to test directory.

Create Github Action to automatically test everything in tests directory, and move tests to test directory. #28

Workflow file for this run

name: Build documentation
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
permissions:
contents: write
jobs:
docs:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: '2.0.5-0' # any version from https://github.com/mamba-org/micromamba-releases
environment-file: environment.yml
init-shell: bash
cache-environment: true
post-cleanup: 'all'
generate-run-shell: false
- name: Sphinx build
run: |
sphinx-build doc _build
shell: bash -el {0}
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
with:
publish_branch: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/
force_orphan: true