-
Notifications
You must be signed in to change notification settings - Fork 14
50 lines (40 loc) · 1.11 KB
/
Copy pathtest.yml
File metadata and controls
50 lines (40 loc) · 1.11 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
49
50
name: Test
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true
env:
PIP_ONLY_BINARY: ":all:"
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
# version number must be string, otherwise 3.10 becomes 3.1
python-version: ["3.10", "3.11", "3.13", "3.14"]
include:
- os: windows-latest
python-version: "3.13"
- os: macos-latest
python-version: ["3.11", "3.14"]
- os: macos-14
python-version: "3.10"
fail-fast: false
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.x"
allow-prereleases: true
- uses: astral-sh/setup-uv@v8.0.0
- run: uv pip install --system -e .[test]
- if: matrix.os != 'ubuntu-latest'
run: python -m pytest
- if: matrix.os == 'ubuntu-latest'
env:
JUPYTER_PLATFORM_DIRS: 1
run: coverage run -m pytest
- if: matrix.os == 'ubuntu-latest'
uses: coverallsapp/github-action@v2