Skip to content

Pytest tests

Pytest tests #75

Workflow file for this run

name: Replay Docs
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
on:
push:
branches:
- 'main'
tags:
- '*'
pull_request:
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build-docs:
runs-on: ubuntu-latest
# if: "startsWith(github.ref, 'refs/tags/')"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: pip install -r docs/requirements.txt
- name: Build Docs
run: |
cd docs
make html
tar \
--dereference --hard-dereference \
--directory _build/html -cvf artifact.tar .
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: github-pages
path: docs/artifact.tar
if-no-files-found: error
deploy-docs:
if: "startsWith(github.ref, 'refs/tags/')"
runs-on: ubuntu-latest
needs: build-docs
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Setup Pages
uses: actions/configure-pages@v1
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1