Skip to content

Tests

Tests #3

Workflow file for this run

name: tests
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version-file: ".python-version"
- name: Create virtualenv
run: python -m venv .venv
- name: Activate virtualenv
run: source .venv/bin/activate
- name: Install dependencies
run: pip install .[dev]
- name: Build crate
run: maturin develop
- name: Run tests
run: pytest