Skip to content

Commit 32fe14b

Browse files
committed
Updated GHA workflows, switched to trusted publishing.
1 parent 24d6235 commit 32fe14b

File tree

2 files changed

+23
-11
lines changed

2 files changed

+23
-11
lines changed

.github/workflows/pypi-publish.yml

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,45 +7,54 @@ on:
77
push:
88
tags: "*"
99

10+
permissions:
11+
contents: write # Required to publish docs
12+
id-token: write # Required for OIDC
13+
1014
jobs:
1115
build:
12-
1316
runs-on: ubuntu-latest
1417

1518
steps:
1619
- 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
1923
with:
20-
python-version: 3.11
24+
python-version: 3.14
25+
2126
- name: Install dependencies
2227
run: |
2328
python -m pip install --upgrade pip
2429
pip install flake8 pytest tox
30+
2531
# - name: Lint with flake8
2632
# run: |
2733
# # stop the build if there are Python syntax errors or undefined names
2834
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
2935
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3036
# # flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
37+
3138
- name: Test with tox
3239
run: |
3340
tox
41+
3442
- name: Build docs
3543
run: |
3644
tox -e docs
45+
3746
- run: touch ./docs/_build/html/.nojekyll
47+
3848
- name: GH Pages Deployment
39-
uses: JamesIves/github-pages-deploy-action@4.1.3
49+
uses: JamesIves/github-pages-deploy-action@v4
4050
with:
4151
branch: gh-pages # The branch the action should deploy to.
4252
folder: ./docs/_build/html
4353
clean: true # Automatically remove deleted files from the deploy branch
54+
4455
- name: Build Project and Publish
4556
run: |
4657
python -m tox -e clean,build
58+
4759
- 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

.github/workflows/pypi-test.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,18 @@ jobs:
1212
runs-on: ubuntu-latest
1313
strategy:
1414
matrix:
15-
python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13' ]
15+
python-version: [ '3.10', '3.11', '3.12', '3.13', '3.14' ]
1616

1717
name: Python ${{ matrix.python-version }}
1818
steps:
1919
- uses: actions/checkout@v4
20+
2021
- name: Setup Python
21-
uses: actions/setup-python@v5
22+
uses: actions/setup-python@v6
2223
with:
2324
python-version: ${{ matrix.python-version }}
2425
cache: 'pip'
26+
2527
- name: Install dependencies
2628
run: |
2729
python -m pip install --upgrade pip
@@ -32,6 +34,7 @@ jobs:
3234
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3335
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3436
# # flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
37+
3538
- name: Test with tox
3639
run: |
3740
tox

0 commit comments

Comments
 (0)