Skip to content

Commit 4bd1b5b

Browse files
authored
ci: update (#168)
* ci: update Signed-off-by: Henry Schreiner <[email protected]> * Update .github/workflows/ci.yml --------- Signed-off-by: Henry Schreiner <[email protected]>
1 parent 07e1826 commit 4bd1b5b

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -73,22 +73,16 @@ jobs:
7373

7474
steps:
7575
- uses: actions/checkout@v4
76+
- uses: hynek/build-and-inspect-python-package@v2
7677

77-
- name: Build sdist and wheel
78-
run: pipx run build
79-
80-
- uses: actions/upload-artifact@v4
81-
with:
82-
path: dist
83-
84-
- name: Check products
85-
run: pipx run twine check dist/*
8678

8779
publish:
8880
name: Publish
8981
environment: pypi
9082
permissions:
9183
id-token: write
84+
attestations: write
85+
contents: read
9286
needs: [dist]
9387
if: github.event_name == 'release' && github.event.action == 'published'
9488
runs-on: ubuntu-latest
@@ -97,6 +91,11 @@ jobs:
9791
- uses: actions/download-artifact@v4
9892
with:
9993
path: dist
100-
name: artifact
94+
name: Packages
95+
96+
- name: Generate artifact attestation for sdist and wheel
97+
uses: actions/attest-build-provenance@173725a1209d09b31f9d30a3890cf2757ebbff0d # v1.1.2
98+
with:
99+
subject-path: "dist/uproot_browser-*"
101100

102101
- uses: pypa/gh-action-pypi-publish@release/v1

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ classifiers = [
3131
"Programming Language :: Python :: 3.9",
3232
"Programming Language :: Python :: 3.10",
3333
"Programming Language :: Python :: 3.11",
34+
"Programming Language :: Python :: 3.12",
3435
"Development Status :: 4 - Beta",
3536
"Typing :: Typed",
3637
]

0 commit comments

Comments
 (0)