Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use correct python version in maturin ci for aarch64 #55

Merged
merged 1 commit into from
Sep 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading