-
-
Notifications
You must be signed in to change notification settings - Fork 38
37 lines (30 loc) · 846 Bytes
/
build.yml
File metadata and controls
37 lines (30 loc) · 846 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
name: Tests
on:
# Trigger the workflow on push or pull request,
# but only for the main branch
push:
branches:
- '**' # this matches all branches
pull_request:
branches:
- main
jobs:
build_wheels:
name: Build and test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.12"]
steps:
- uses: actions/checkout@v5
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Ninja
uses: seanmiddleditch/gha-setup-ninja@master
- name: Build
run: pip install -e .[test]
- name: Test
run: python -m pytest -m "not heavy and (network or not network)"