Skip to content

Commit

Permalink
Update github actions versions (#540)
Browse files Browse the repository at this point in the history
* Update github actions versions

Use newer versions of github actions, in order to get rid of spurious
warnings about actions being deprecated

* use ubuntu-20.04 for testing wheels
  • Loading branch information
benfred authored Dec 8, 2022
1 parent 400dd61 commit 58c9214
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 21 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
run: |
pyenv global system
python --version
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
Expand All @@ -33,7 +33,7 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Install Dependencies
run: sudo apt install libunwind-dev
if: runner.os == 'Linux'
Expand All @@ -51,7 +51,7 @@ jobs:
- name: Test (retry#2)
run: cargo test --release
if: steps.test1.outcome=='failure'
- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Build Wheel
Expand All @@ -74,7 +74,7 @@ jobs:
python3 -c "import shutil; import glob; wheels = glob.glob('dist/*.whl'); [shutil.move(wheel, wheel.replace('py3', 'py2.py3')) for wheel in wheels if 'py2' not in wheel]"
if: runner.os != 'Linux'
- name: Upload wheels
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
Expand All @@ -92,7 +92,7 @@ jobs:
RUSTUP_HOME: /root/.rustup
CARGO_HOME: /root/.cargo
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Build
run: |
python3 -m pip install --upgrade maturin
Expand All @@ -101,7 +101,7 @@ jobs:
run: |
python3 -c "import shutil; import glob; wheels = glob.glob('dist/*.whl'); [shutil.move(wheel, wheel.replace('py3', 'py2.py3')) for wheel in wheels if 'py2' not in wheel]"
- name: Upload wheels
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: wheels
path: dist
Expand All @@ -116,16 +116,16 @@ jobs:
release: FreeBSD-13.1-STABLE
url: https://github.com/rbspy/freebsd-vagrant-box/releases/download/20220703/fbsd_13_1.box
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Cache Vagrant box
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.vagrant.d
key: ${{ matrix.box }}-vagrant-boxes-${{ hashFiles('ci/Vagrantfile') }}
restore-keys: |
${{ matrix.box }}-vagrant-
- name: Cache Cargo and build artifacts
uses: actions/cache@v2.1.4
uses: actions/cache@v3
with:
path: build-artifacts.tar
key: ${{ matrix.box }}-cargo-${{ hashFiles('**/Cargo.lock') }}
Expand Down Expand Up @@ -154,7 +154,7 @@ jobs:
tar xf build-artifacts.tar target/release/py-spy
mv target/release/py-spy py-spy-x86_64-unknown-freebsd
- name: Upload Binaries
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: py-spy-x86_64-unknown-freebsd
path: py-spy-x86_64-unknown-freebsd
Expand All @@ -168,13 +168,13 @@ jobs:
matrix:
python-version: [2.7.17, 2.7.18, 3.5.4, 3.5.9, 3.5.10, 3.6.7, 3.6.8, 3.6.9, 3.6.10, 3.6.11, 3.6.12, 3.6.13, 3.6.14, 3.6.15, 3.7.1, 3.7.5, 3.7.6, 3.7.7, 3.7.8, 3.7.9, 3.7.10, 3.7.11, 3.7.12, 3.7.13, 3.7.14, 3.8.0, 3.8.1, 3.8.2, 3.8.3, 3.8.4, 3.8.5, 3.8.6, 3.8.7, 3.8.8, 3.8.9, 3.8.10, 3.8.11, 3.8.12, 3.8.13, 3.8.14, 3.9.0, 3.9.1, 3.9.2, 3.9.3, 3.9.4, 3.9.5, 3.9.6, 3.9.7, 3.9.8, 3.9.9, 3.9.10, 3.9.11, 3.9.12, 3.9.13, 3.9.14, 3.10.0, 3.10.1, 3.10.2, 3.10.3, 3.10.4, 3.10.5, 3.10.6, 3.10.7, 3.11.0-beta.5]
# TODO: also test windows
os: [ubuntu-latest, macos-latest]
os: [ubuntu-20.04, macos-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: wheels
- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install wheel
Expand Down Expand Up @@ -219,8 +219,8 @@ jobs:
# only test out relatively recent versions of python
pyenv-python-version: [3.7.10, 3.8.9, 3.9.4]
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: wheels
- name: Setup pyenv
Expand All @@ -242,7 +242,7 @@ jobs:
if: "startsWith(github.ref, 'refs/tags/')"
needs: [test-wheels, test-wheel-linux-armv7]
steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v3
with:
name: wheels
- name: Create GitHub Release
Expand All @@ -253,7 +253,7 @@ jobs:
- name: Install Dependencies
run: sudo apt install libunwind-dev
if: runner.os == 'Linux'
- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Push to PyPi
Expand All @@ -264,7 +264,7 @@ jobs:
pip install --upgrade wheel pip setuptools twine
twine upload *
rm *
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Push to crates.io
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/update_python_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ jobs:
update-dep:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
ssh-key: ${{ secrets.SSH_PRIVATE_KEY }}
- uses: actions/setup-python@v2
- uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install
run: pip install --upgrade requests
- name: Scan for new python versions
run: python ci/update_python_test_versions.py
- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
uses: peter-evans/create-pull-request@v4
with:
commit-message: Update tested python versions
title: Update tested python versions
Expand Down

0 comments on commit 58c9214

Please sign in to comment.