Skip to content

Change the ID type alias to pre-PEP695 #30

Change the ID type alias to pre-PEP695

Change the ID type alias to pre-PEP695 #30

name: pygexml checks, tests and docs
on: [push, workflow_dispatch, workflow_call]
jobs:
checks-and-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- run: pip install ".[dev,test]"
- run: black --check pygexml test
- run: mypy pygexml test
- run: pyright pygexml test
- run: pytest -v
pages:
needs: checks-and-tests
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deploy.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.14"
cache: pip
- run: pip install ".[docs,strategies]"
- run: pdoc -o .api_docs pygexml/*.py
- run: tree .api_docs
- uses: actions/upload-pages-artifact@v3
with:
path: .api_docs
- id: deploy
uses: actions/deploy-pages@v4