Add py.typed for mypy on foreign imports #12
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] | |
| 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 test_util | |
| - run: mypy pygexml test test_util | |
| - run: pyright pygexml test test_util | |
| - 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]" | |
| - run: pdoc -o .api_docs pygexml/* | |
| - run: tree .api_docs | |
| - uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: .api_docs | |
| - id: deploy | |
| uses: actions/deploy-pages@v4 |