Prepare release v0.2.1 #32
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |