Skip to content

Commit 3063c60

Browse files
committed
build: Update pypi.yml, .readthedocs.yaml. Use PyPy 3.10.
1 parent d3c3cf5 commit 3063c60

File tree

3 files changed

+29
-8
lines changed

3 files changed

+29
-8
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
matrix:
99
os: [macos-latest, windows-latest, ubuntu-latest]
10-
python-version: [3.8, 3.9, '3.10', '3.11', '3.12', pypy-3.9]
10+
python-version: [3.8, 3.9, '3.10', '3.11', '3.12', pypy-3.10]
1111
steps:
1212
- uses: actions/checkout@v4
1313
- uses: actions/setup-python@v5

.github/workflows/pypi.yml

+27-7
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,40 @@ on: push
33
jobs:
44
build:
55
runs-on: ubuntu-latest
6-
permissions:
7-
id-token: write
86
steps:
97
- uses: actions/checkout@v4
108
- uses: actions/setup-python@v5
119
with:
1210
python-version: '3.10'
1311
- run: pip install --upgrade build
1412
- run: python -m build --sdist --wheel
15-
- name: Publish to TestPyPI
16-
uses: pypa/gh-action-pypi-publish@release/v1
13+
- uses: actions/upload-artifact@v4
14+
with:
15+
name: python-package-distributions
16+
path: dist/
17+
test:
18+
needs: build
19+
permissions:
20+
id-token: write
21+
runs-on: ubuntu-latest
22+
steps:
23+
- uses: actions/download-artifact@v4
24+
with:
25+
name: python-package-distributions
26+
path: dist/
27+
- uses: pypa/gh-action-pypi-publish@release/v1
1728
with:
1829
repository-url: https://test.pypi.org/legacy/
1930
skip-existing: true
20-
- name: Publish to PyPI
21-
if: startsWith(github.ref, 'refs/tags')
22-
uses: pypa/gh-action-pypi-publish@release/v1
31+
publish:
32+
if: startsWith(github.ref, 'refs/tags/')
33+
needs: test
34+
permissions:
35+
id-token: write
36+
runs-on: ubuntu-latest
37+
steps:
38+
- uses: actions/download-artifact@v4
39+
with:
40+
name: python-package-distributions
41+
path: dist/
42+
- uses: pypa/gh-action-pypi-publish@release/v1

.readthedocs.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ python:
88
- path: .
99
- requirements: docs/requirements.txt
1010
sphinx:
11+
configuration: docs/conf.py
1112
fail_on_warning: true

0 commit comments

Comments
 (0)