From 58c92147bdc640512ba1635f0fca407a103db7aa Mon Sep 17 00:00:00 2001 From: Ben Frederickson Date: Thu, 8 Dec 2022 14:14:46 -0800 Subject: [PATCH] Update github actions versions (#540) * 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 --- .github/workflows/build.yml | 36 ++++++++++++------------ .github/workflows/update_python_test.yml | 6 ++-- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6016911c..4a448a08 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 @@ -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' @@ -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 @@ -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 @@ -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 @@ -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 @@ -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') }} @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 }} diff --git a/.github/workflows/update_python_test.yml b/.github/workflows/update_python_test.yml index bff0ce59..0874d672 100644 --- a/.github/workflows/update_python_test.yml +++ b/.github/workflows/update_python_test.yml @@ -7,10 +7,10 @@ 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 @@ -18,7 +18,7 @@ jobs: - 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