Skip to content

Commit

Permalink
TST: More [build wheels]
Browse files Browse the repository at this point in the history
  • Loading branch information
larsoner committed Nov 6, 2024
1 parent bbebd89 commit f9c0f33
Showing 1 changed file with 6 additions and 19 deletions.
25 changes: 6 additions & 19 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
run: pipx run build -s
- uses: actions/upload-artifact@v4
with:
name: sdist
name: source-dist
path: ./dist/*.tar.gz

build-wheel:
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:

- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.python == '*' && 'all' || matrix.python }}-${{ startsWith(matrix.buildplat[1], 'macosx') && 'macosx' || matrix.buildplat[1] }}
name: ${{ matrix.python == '*' && 'all' || matrix.python }}-${{ startsWith(matrix.buildplat[1], 'macosx') && 'macosx' || matrix.buildplat[1] }}-dist
path: ./wheelhouse/*.whl

test-sdist:
Expand All @@ -108,7 +108,7 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
name: sdist
name: source-dist
path: ./dist
- uses: actions/setup-python@v4
with:
Expand All @@ -130,17 +130,10 @@ jobs:
- uses: actions/download-artifact@v4
with:
path: dist/
pattern: '*'
pattern: '*-dist'
merge-multiple: true
- name: Check artifacts
run: ls -lR
- name: Consolidate and re-check
run: |
set -eo pipefail
ls -lR dist/
mv dist/*/*.{tar.gz,whl} dist
rmdir dist/*/
ls -lR dist/
run: ls -lR dist/
- run: pipx run twine check dist/*

publish:
Expand All @@ -154,13 +147,7 @@ jobs:
path: dist/
pattern: '*'
merge-multiple: true
- name: Consolidate artifacts
run: |
set -eo pipefail
ls -lR dist/
mv dist/*/*.{tar.gz,whl} dist
rmdir dist/*/
ls -lR dist/
- run: ls -lR dist/
- uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
Expand Down

0 comments on commit f9c0f33

Please sign in to comment.