-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Check out repo at depth 0 for Python tests, bump Python and PyPI acti…
…ons (#1713) The reason for this is that `setuptools-scm` installs a version relative to the last release tag - if no tag is found, the default version is taken to be v0.1.0. This was the case in GitHub Actions, where only the PR branch is checked out. Also unpins build system requirements in the `pyproject.toml`. The sdist build system was changed to `build` from `python setup.py sdist` for forward compatibility - `build` is superior in every way, and the advertised solution by both cibuildwheel and PyPA itself. Bump `actions/setup-python` to v5, `pypa/gh-action-pypi-publish` to v1.8.11, and `docker/setup-qemu-action` to v3.
- Loading branch information
1 parent
c2de526
commit 9a0422e
Showing
4 changed files
with
24 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,17 +13,16 @@ jobs: | |
steps: | ||
- name: Check out repo | ||
uses: actions/checkout@v4 | ||
|
||
with: | ||
fetch-depth: 0 | ||
- name: Install Python 3.11 | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Build and check sdist | ||
run: | | ||
python setup.py sdist | ||
- name: Upload sdist | ||
uses: actions/upload-artifact@v3 | ||
- run: python -m pip install build | ||
- name: Build sdist | ||
run: python -m build --sdist | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: dist | ||
path: dist/*.tar.gz | ||
|
@@ -38,10 +37,12 @@ jobs: | |
steps: | ||
- name: Check out Google Benchmark | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Set up QEMU | ||
if: runner.os == 'Linux' | ||
uses: docker/setup-qemu-action@v2 | ||
uses: docker/setup-qemu-action@v3 | ||
with: | ||
platforms: all | ||
|
||
|
@@ -61,7 +62,7 @@ jobs: | |
uses: actions/upload-artifact@v3 | ||
with: | ||
name: dist | ||
path: ./wheelhouse/*.whl | ||
path: wheelhouse/*.whl | ||
|
||
pypi_upload: | ||
name: Publish google-benchmark wheels to PyPI | ||
|
@@ -74,4 +75,4 @@ jobs: | |
with: | ||
name: dist | ||
path: dist | ||
- uses: pypa/[email protected].10 | ||
- uses: pypa/[email protected].11 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters