-
Notifications
You must be signed in to change notification settings - Fork 60
48 lines (40 loc) · 1.19 KB
/
test.yaml
File metadata and controls
48 lines (40 loc) · 1.19 KB
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
40
41
42
43
44
45
46
47
48
# yamllint disable rule:truthy
---
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch: # allow manual triggering
concurrency: # cancel stale CI runs on the same branch
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
name: Python ${{ matrix.python-version }} – ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ["3.10", "3.14"]
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip # built-in cache for wheels
cache-dependency-path: |
pyproject.toml
- name: Install package (+tests)
run: |
python -m pip install --upgrade pip setuptools
python -m pip install -e .
python -m pip install pytest
- name: Run pytest
run: |
python -m pytest tests/test_nojit.py
python -m pytest tests/test_jit.py