-
-
Notifications
You must be signed in to change notification settings - Fork 176
40 lines (32 loc) · 829 Bytes
/
test.yml
File metadata and controls
40 lines (32 loc) · 829 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
32
33
34
35
36
37
38
39
40
name: Test
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build_wheels:
name: Build wheels on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
lfs: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9'
- name: Install
run: pip install .[tests]
- uses: astral-sh/ruff-action@v3
- name: Check code (ruff check)
run: ruff check
- name: Check code style (ruff format)
run: ruff format --check
- name: Run tests
run: python -m pytest -vs ./tests