|
7 | 7 | push: |
8 | 8 | tags: "*" |
9 | 9 |
|
| 10 | +permissions: |
| 11 | + contents: write # Required to publish docs |
| 12 | + id-token: write # Required for OIDC |
| 13 | + |
10 | 14 | jobs: |
11 | 15 | build: |
12 | | - |
13 | 16 | runs-on: ubuntu-latest |
14 | 17 |
|
15 | 18 | steps: |
16 | 19 | - uses: actions/checkout@v4 |
17 | | - - name: Set up Python 3.11 |
18 | | - uses: actions/setup-python@v5 |
| 20 | + |
| 21 | + - name: Set up Python |
| 22 | + uses: actions/setup-python@v6 |
19 | 23 | with: |
20 | | - python-version: 3.11 |
| 24 | + python-version: 3.14 |
| 25 | + |
21 | 26 | - name: Install dependencies |
22 | 27 | run: | |
23 | 28 | python -m pip install --upgrade pip |
24 | 29 | pip install flake8 pytest tox |
| 30 | +
|
25 | 31 | # - name: Lint with flake8 |
26 | 32 | # run: | |
27 | 33 | # # stop the build if there are Python syntax errors or undefined names |
28 | 34 | # flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics |
29 | 35 | # # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide |
30 | 36 | # # flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics |
| 37 | + |
31 | 38 | - name: Test with tox |
32 | 39 | run: | |
33 | 40 | tox |
| 41 | +
|
34 | 42 | - name: Build docs |
35 | 43 | run: | |
36 | 44 | tox -e docs |
| 45 | +
|
37 | 46 | - run: touch ./docs/_build/html/.nojekyll |
| 47 | + |
38 | 48 | - name: GH Pages Deployment |
39 | | - uses: JamesIves/github-pages-deploy-action@4.1.3 |
| 49 | + uses: JamesIves/github-pages-deploy-action@v4 |
40 | 50 | with: |
41 | 51 | branch: gh-pages # The branch the action should deploy to. |
42 | 52 | folder: ./docs/_build/html |
43 | 53 | clean: true # Automatically remove deleted files from the deploy branch |
| 54 | + |
44 | 55 | - name: Build Project and Publish |
45 | 56 | run: | |
46 | 57 | python -m tox -e clean,build |
| 58 | +
|
47 | 59 | - name: Publish package |
48 | | - uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29 |
49 | | - with: |
50 | | - user: __token__ |
51 | | - password: ${{ secrets.PYPI_PASSWORD }} |
| 60 | + uses: pypa/gh-action-pypi-publish@release/v1 |
0 commit comments