-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (36 loc) · 1003 Bytes
/
test.yaml
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
32
33
34
35
36
37
38
39
name: test
on:
push:
branches: [main]
tags: ["*"]
pull_request:
workflow_dispatch:
permissions: { contents: read }
jobs:
test:
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions/setup-python@v5
with: { python-version: "${{ matrix.python-version }}" }
- name: Set up poetry
run: |
pip install --upgrade pip
pip install poetry
- run: poetry install --no-root --with=dev
- uses: PyO3/maturin-action@v1
with: { args: "--release" }
- run: make test