forked from chowdhurya/rust-unidecode
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (25 loc) · 799 Bytes
/
tests.yml
File metadata and controls
31 lines (25 loc) · 799 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
name: Python tests
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
on: # Trigger the workflow on push or pull request, but only for the master branch
push:
branches: [pyo3]
pull_request:
branches: [pyo3]
jobs:
pytest:
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- uses: messense/maturin-action@v1
- name: Build package with maturin
run: maturin build --release
- name: Install package and dependencies
run: |
python -m pip install target/wheels/*.whl
python -m pip install -r constraints.txt
- name: test-pkg
run: python -m pytest tests