Skip to content

Commit

Permalink
use correct python version in maturin ci for aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-codecov committed Sep 24, 2024
1 parent 93e59ef commit 3aa2c1f
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -16,6 +18,7 @@ on:

permissions:
contents: read
packages: write

jobs:
linux:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 3aa2c1f

Please sign in to comment.