-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (43 loc) · 1.19 KB
/
checks_tests_docs.yml
File metadata and controls
46 lines (43 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
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