Skip to content

Merge pull request #26 from QueryaHub/feat/patch-decorator #8

Merge pull request #26 from QueryaHub/feat/patch-decorator

Merge pull request #26 from QueryaHub/feat/patch-decorator #8

Workflow file for this run

name: ci
on:
push:
branches: [main, master, dev]
pull_request:
branches: [main, master, dev]
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
# 3.14 may be pre-release on some runners until GA; keep CI green across the full range.
allow-prerelease: true
- name: Install build deps
run: |
python -m pip install --upgrade pip
python -m pip install maturin pytest oxyjwt httpx granian
- name: Build and install oxyroute
run: |
maturin build --release
python -m pip install target/wheels/oxyroute-*.whl
- name: Pytest (isolated dir so repo tree does not shadow the installed package)
run: |
cd "$(mktemp -d)"
python -m pytest "$GITHUB_WORKSPACE/tests" -v