Merge pull request #2 from tiwilliam/raise_on_expired #33
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: tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
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 |