Skip to content

Exclude mypy on PyPy to avoid librt build failure #3

Exclude mypy on PyPy to avoid librt build failure

Exclude mypy on PyPy to avoid librt build failure #3

Workflow file for this run

name: Docs: Build and deploy MkDocs site

Check failure on line 1 in .github/workflows/docs-pages.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/docs-pages.yml

Invalid workflow file

You have an error in your yaml syntax
on:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
installer-parallel: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
- name: Install library
run: poetry install --no-interaction
- name: Build MkDocs site
run: poetry run mkdocs build
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload built site artifact
uses: actions/upload-pages-artifact@v3
with:
path: site
deploy:
runs-on: ubuntu-latest
needs: build
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4