Update to latest GitHub Action versions

checkout@v2 -> v3
  upload/download-artifact@v2 -> v3
  python-setup@v2 -> v3
  pypa/gh-action-pypi-publish@1.4.2 -> v1.5.0

Python latest is v4, but it breaks working with default Python version
https://github.com/actions/setup-python/issues/421
This commit is contained in:
Anatoli Babenia
2022-06-18 15:09:36 +03:00
parent cc56a140d2
commit 52945e1668
7 changed files with 25 additions and 25 deletions
+3 -3
View File
@@ -83,10 +83,10 @@ jobs:
os: [ubuntu-20.04, windows-2019, macOS-10.15] os: [ubuntu-20.04, windows-2019, macOS-10.15]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
# Used to host cibuildwheel # Used to host cibuildwheel
- uses: actions/setup-python@v2 - uses: actions/setup-python@v3
- name: Install cibuildwheel - name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.7.0 run: python -m pip install cibuildwheel==2.7.0
@@ -97,7 +97,7 @@ jobs:
# env: # env:
# CIBW_SOME_OPTION: value # CIBW_SOME_OPTION: value
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
path: ./wheelhouse/*.whl path: ./wheelhouse/*.whl
``` ```
+4 -4
View File
@@ -46,7 +46,7 @@ well as several useful actions. Alongside your existing job(s) that runs cibuild
name: Make SDist name: Make SDist
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
with: with:
fetch-depth: 0 # Optional, use if you use setuptools_scm fetch-depth: 0 # Optional, use if you use setuptools_scm
submodules: true # Optional, use if you have submodules submodules: true # Optional, use if you have submodules
@@ -54,7 +54,7 @@ well as several useful actions. Alongside your existing job(s) that runs cibuild
- name: Build SDist - name: Build SDist
run: pipx run build --sdist run: pipx run build --sdist
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
path: dist/*.tar.gz path: dist/*.tar.gz
``` ```
@@ -69,12 +69,12 @@ This requires a [PyPI upload token](https://pypi.org/manage/account/token/), sto
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published' if: github.event_name == 'release' && github.event.action == 'published'
steps: steps:
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v3
with: with:
name: artifact name: artifact
path: dist path: dist
- uses: pypa/gh-action-pypi-publish@v1.4.2 - uses: pypa/gh-action-pypi-publish@v1.5.0
with: with:
user: __token__ user: __token__
password: ${{ secrets.pypi_password }} password: ${{ secrets.pypi_password }}
+5 -5
View File
@@ -180,12 +180,12 @@ To build Linux, Mac, and Windows wheels using GitHub Actions, create a `.github/
os: [ubuntu-20.04, windows-2019, macos-10.15] os: [ubuntu-20.04, windows-2019, macos-10.15]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Build wheels - name: Build wheels
run: pipx run cibuildwheel==2.7.0 run: pipx run cibuildwheel==2.7.0
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
path: ./wheelhouse/*.whl path: ./wheelhouse/*.whl
``` ```
@@ -212,10 +212,10 @@ To build Linux, Mac, and Windows wheels using GitHub Actions, create a `.github/
os: [ubuntu-20.04, windows-2019, macos-10.15] os: [ubuntu-20.04, windows-2019, macos-10.15]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
# Used to host cibuildwheel # Used to host cibuildwheel
- uses: actions/setup-python@v2 - uses: actions/setup-python@v3
- name: Install cibuildwheel - name: Install cibuildwheel
run: python -m pip install cibuildwheel==2.7.0 run: python -m pip install cibuildwheel==2.7.0
@@ -223,7 +223,7 @@ To build Linux, Mac, and Windows wheels using GitHub Actions, create a `.github/
- name: Build wheels - name: Build wheels
run: python -m cibuildwheel --output-dir wheelhouse run: python -m cibuildwheel --output-dir wheelhouse
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
path: ./wheelhouse/*.whl path: ./wheelhouse/*.whl
``` ```
+2 -2
View File
@@ -7,13 +7,13 @@ jobs:
name: Build wheels on macos-10.15 name: Build wheels on macos-10.15
runs-on: macos-10.15 runs-on: macos-10.15
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Build wheels - name: Build wheels
uses: pypa/cibuildwheel@v2.7.0 uses: pypa/cibuildwheel@v2.7.0
env: env:
CIBW_ARCHS_MACOS: x86_64 universal2 CIBW_ARCHS_MACOS: x86_64 universal2
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
path: ./wheelhouse/*.whl path: ./wheelhouse/*.whl
+6 -6
View File
@@ -19,12 +19,12 @@ jobs:
os: [ubuntu-20.04, windows-2019, macos-10.15] os: [ubuntu-20.04, windows-2019, macos-10.15]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Build wheels - name: Build wheels
uses: pypa/cibuildwheel@v2.7.0 uses: pypa/cibuildwheel@v2.7.0
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
path: ./wheelhouse/*.whl path: ./wheelhouse/*.whl
@@ -32,12 +32,12 @@ jobs:
name: Build source distribution name: Build source distribution
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Build sdist - name: Build sdist
run: pipx run build --sdist run: pipx run build --sdist
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
path: dist/*.tar.gz path: dist/*.tar.gz
@@ -49,12 +49,12 @@ jobs:
# alternatively, to publish when a GitHub Release is created, use the following rule: # alternatively, to publish when a GitHub Release is created, use the following rule:
# if: github.event_name == 'release' && github.event.action == 'published' # if: github.event_name == 'release' && github.event.action == 'published'
steps: steps:
- uses: actions/download-artifact@v2 - uses: actions/download-artifact@v3
with: with:
name: artifact name: artifact
path: dist path: dist
- uses: pypa/gh-action-pypi-publish@v1.4.2 - uses: pypa/gh-action-pypi-publish@v1.5.0
with: with:
user: __token__ user: __token__
password: ${{ secrets.pypi_password }} password: ${{ secrets.pypi_password }}
+2 -2
View File
@@ -11,7 +11,7 @@ jobs:
os: [ubuntu-20.04, windows-2019, macos-10.15] os: [ubuntu-20.04, windows-2019, macos-10.15]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- name: Build wheels - name: Build wheels
uses: pypa/cibuildwheel@v2.7.0 uses: pypa/cibuildwheel@v2.7.0
@@ -19,6 +19,6 @@ jobs:
# env: # env:
# CIBW_SOME_OPTION: value # CIBW_SOME_OPTION: value
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
path: ./wheelhouse/*.whl path: ./wheelhouse/*.whl
+3 -3
View File
@@ -11,9 +11,9 @@ jobs:
os: [ubuntu-20.04, windows-2019, macos-10.15] os: [ubuntu-20.04, windows-2019, macos-10.15]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v3
- uses: actions/setup-python@v2 - uses: actions/setup-python@v3
name: Install Python name: Install Python
with: with:
python-version: '3.7' python-version: '3.7'
@@ -31,6 +31,6 @@ jobs:
# emulated ones # emulated ones
CIBW_ARCHS_LINUX: auto aarch64 ppc64le s390x CIBW_ARCHS_LINUX: auto aarch64 ppc64le s390x
- uses: actions/upload-artifact@v2 - uses: actions/upload-artifact@v3
with: with:
path: ./wheelhouse/*.whl path: ./wheelhouse/*.whl