From 3aa2c1fb3c3d4ccf041fa4e3cb8d3f922f39470a Mon Sep 17 00:00:00 2001 From: Matt Hammerly Date: Tue, 24 Sep 2024 16:09:13 -0700 Subject: [PATCH] use correct python version in maturin ci for aarch64 --- .github/workflows/publish.yml | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1dee3c2..0002293 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,10 +3,12 @@ # # maturin generate-ci github --pytest # -# Modified by hand to use PyPI's Trusted Publishing: -# https://www.maturin.rs/distribution#using-pypis-trusted-publishing -# Also to change when the workflow is triggered (should be on new release) -# and remove unused target platforms. +# Modified by hand to: +# - use PyPI's Trusted Publishing https://www.maturin.rs/distribution#using-pypis-trusted-publishing +# - trigger the workflow on new release +# - add "packages: write" permission for uraimo/run-on-arch-action caching +# - remove unnecessary target platforms +# - make run-on-arch-action use deadsnakes Python 3.12 name: CI on: @@ -16,6 +18,7 @@ on: permissions: contents: read + packages: write jobs: linux: @@ -65,11 +68,18 @@ jobs: githubToken: ${{ github.token }} install: | apt-get update - apt-get install -y --no-install-recommends python3 python3-pip - pip3 install -U pip pytest + apt-get install -y gnupg ca-certificates + echo "deb https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy main" >> /etc/apt/sources.list.d/deadsnakes.list + apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F23C5A6CF475977595C89F51BA6932366A755776 + apt-get update + apt-get install -y --no-install-recommends python3.12 python3.12-venv python3-pip + python3.12 -m venv /venv + source /venv/bin/activate + pip install -U pip pytest run: | set -e - pip3 install codecov_rs --find-links dist --force-reinstall + source /venv/bin/activate + pip install codecov_rs --find-links dist --force-reinstall pytest musllinux: