Skip to content

Commit

Permalink
ci: Update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mborgerson committed Aug 2, 2024
1 parent a197fdb commit 729d4de
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ jobs:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected].4
- uses: actions/[email protected].0
- uses: actions/[email protected].7
- uses: actions/[email protected].1
with:
python-version: '3.10'
- run: |
Expand All @@ -25,15 +25,15 @@ jobs:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected].4
- uses: actions/[email protected].0
- uses: actions/[email protected].7
- uses: actions/[email protected].1
with:
python-version: '3.10'
- name: Build sdist
run: |
python -m pip install --user build
python -m build --sdist
- uses: actions/[email protected].3
- uses: actions/[email protected].5
with:
name: source
path: dist/*.tar.gz
Expand All @@ -59,22 +59,22 @@ jobs:
- { arch: x86_64, wheel: cp312-win_amd64, os: windows-2019 }
steps:
- name: Download source distribution
uses: actions/[email protected].7
uses: actions/[email protected].8
with:
name: source
- name: Unpack source distribution
shell: bash
run: tar --strip-components 1 -xvf *.tar.gz
- name: Build wheel
uses: pypa/cibuildwheel@v2.17.0
uses: pypa/cibuildwheel@v2.19.2
with:
output-dir: wheelhouse
env:
CIBW_ARCHS_MACOS: ${{ matrix.arch }}
CIBW_BUILD: ${{ matrix.wheel }}
CIBW_TEST_COMMAND: python -m unittest discover -v -s {package}/tests
CIBW_BUILD_VERBOSITY: 1
- uses: actions/[email protected].3
- uses: actions/[email protected].5
with:
name: ${{ matrix.wheel }}
path: ./wheelhouse/*.whl
Expand All @@ -83,8 +83,8 @@ jobs:
name: Build docs
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected].4
- uses: actions/[email protected].0
- uses: actions/[email protected].7
- uses: actions/[email protected].1
with:
python-version: '3.12'
- run: |
Expand All @@ -103,10 +103,10 @@ jobs:
# Upload to PyPI on every tag starting with 'v'
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
steps:
- uses: actions/[email protected].7
- uses: actions/[email protected].8
with:
path: artifacts
- run: |
mkdir dist
find artifacts -type f -exec mv {} dist \;
- uses: pypa/gh-action-pypi-publish@v1.8.14
- uses: pypa/gh-action-pypi-publish@v1.9.0

0 comments on commit 729d4de

Please sign in to comment.