Skip to content

python-test

python-test #25

Workflow file for this run

name: python-test
on:
workflow_dispatch:
permissions:
contents: read
jobs:
test-python:
name: test ${{ matrix.python-version }}
strategy:
fail-fast: false
matrix:
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- 'pypy3.9'
- 'pypy3.10'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install rust stable
uses: dtolnay/rust-toolchain@stable
- name: set up python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: pip install pytest maturin
- run: pip install -e .
env:
RUST_BACKTRACE: 1
- run: pip freeze
- run: pytest -vv
env:
RUST_BACKTRACE: 1
HYPOTHESIS_PROFILE: slow
test-os:
name: test on ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu, macos, windows]
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v4
- name: install rust stable
uses: dtolnay/rust-toolchain@stable
- name: set up python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- run: pip install pytest maturin
- run: pip install -e .
env:
RUST_BACKTRACE: 1
- run: pip freeze
- run: pytest -vv
env:
RUST_BACKTRACE: 1
HYPOTHESIS_PROFILE: slow