-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (32 loc) · 1.07 KB
/
run-python.yml
File metadata and controls
40 lines (32 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Python Versions 🐍
on: [push]
jobs:
test:
# `ubuntu-24.04` doesn't support Python 3.7 anymore
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- name: Set up Python 🐍
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Set up Rust 🦀
run: |
rustup component add llvm-tools
- name: Get data
uses: ./.github/actions/cache-data
- name: Test Python versions 🐍
env:
RUSTFLAGS: '-Cinstrument-coverage -Clink-dead-code'
run: |
export NEOPDF_DATA_PATH=${PWD}/neopdf-data
cd neopdf_pyapi
python -m venv env
. env/bin/activate
# maturin-1.12.5 fails with: `--include-debuginfo cannot be used with --strip`
pip install maturin==1.12.4
maturin develop --extras test
pytest -m multipleversions benches/test_versions.py