feat: generalize the relaxed_escape_sequences
option to `relaxed_re…
#446
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python extension | |
on: | |
push: | |
paths: | |
- 'py/**' | |
- '.github/workflows/python.yaml' | |
permissions: | |
contents: read | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ 3.8, 3.9, "3.10", "3.11" ] | |
os: [ ubuntu-latest, macos-latest, windows-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Test Python - Windows | |
if: runner.os == 'Windows' | |
run: | | |
pip install virtualenv | |
virtualenv venv; venv\Scripts\activate.ps1 | |
pwd | |
python -m pip install --upgrade pip maturin | |
python -m pip install pytest | |
maturin develop --manifest-path py/Cargo.toml | |
pytest py | |
# Non-windows | |
- name: Test Python - Non-Windows | |
if: runner.os != 'Windows' | |
run: | | |
pip install virtualenv | |
virtualenv venv; source venv/bin/activate | |
python -m pip install --upgrade pip maturin | |
python -m pip install pytest | |
maturin develop --manifest-path py/Cargo.toml | |
pytest py | |