Skip to content

Bump pyo3 from 0.23.0 to 0.23.3 in /citiespy #83

Bump pyo3 from 0.23.0 to 0.23.3 in /citiespy

Bump pyo3 from 0.23.0 to 0.23.3 in /citiespy #83

Workflow file for this run

name: Test Python
on:
pull_request:
paths:
- "citiespy/**"
- "src/**"
- ".github/workflows/test-python.yml"
- "upstream/*"
- "rust-toolchain.toml"
push:
paths:
- "citiespy/**"
- "src/**"
- ".github/workflows/test-python.yml"
- "upstream/*"
- "rust-toolchain.toml"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
working-directory: citiespy
env:
PYO3_USE_ABI3_FORWARD_COMPATIBILITY: 1
jobs:
ubuntu:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13.0-rc.2"]
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: "citiespy/requirements_dev.txt"
- name: Create virtual environment
run: |
python -m venv venv
echo "$GITHUB_WORKSPACE/citiespy/venv/bin" >> $GITHUB_PATH
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements_dev.txt
- name: Install
run: |
source activate
maturin develop
- name: Run tests and report coverage
run: pytest --cov tests/
macos:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13.0-rc.2"]
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: "citiespy/requirements_dev.txt"
- name: Create virtual environment
run: |
python -m venv venv
echo "$GITHUB_WORKSPACE/citiespy/venv/bin" >> $GITHUB_PATH
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements_dev.txt
- name: Install
run: |
source activate
maturin develop
- name: Run tests and report coverage
run: pytest --cov tests/
windows:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13.0-rc.2"]
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
cache-dependency-path: "citiespy/requirements_dev.txt"
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r requirements_dev.txt
- name: Install
shell: bash
run: |
maturin build
pip install target/wheels/citiespy-*.whl
- name: Run tests and report coverage
run: pytest --cov tests/