Skip to content

Commit

Permalink
ci: update job slightly (#2028)
Browse files Browse the repository at this point in the history
* ci: update job slightly

* Ignore check-wheel-content W002

---------

Co-authored-by: mayeut <mayeut@users.noreply.github.com>
  • Loading branch information
henryiii and mayeut authored Oct 2, 2024
1 parent 2e8e511 commit d5c6a83
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,7 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Build SDist and wheel
run: pipx run build

- uses: actions/upload-artifact@v4
with:
name: cibw-sdist
path: dist/*

- name: Check metadata
run: pipx run twine check dist/*
- uses: hynek/build-and-inspect-python-package@v2

publish:
needs: [dist]
Expand All @@ -38,13 +29,14 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
pattern: cibw-*
name: Packages
path: dist
merge-multiple: true

- name: Generate artifact attestation for sdist and wheel
uses: actions/attest-build-provenance@1c608d11d69870c2092266b3f9a6f3abbf17002c # v1.4.3
with:
subject-path: "dist/cibuildwheel-*"

- uses: pypa/gh-action-pypi-publish@release/v1
with:
attestations: true
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -240,3 +240,6 @@ flake8-unused-arguments.ignore-variadic-names = true

[tool.repo-review]
ignore = ["PC170", "PP303"]

[tool.check-wheel-contents]
ignore = ["W002"] # requirements-*.txt are allowed to be duplicates of one another

0 comments on commit d5c6a83

Please sign in to comment.