-
Notifications
You must be signed in to change notification settings - Fork 106
44 lines (41 loc) · 1 KB
/
ci.yml
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
name: CI
on:
push:
branches: [master]
paths:
- tree_sitter/**
- tests/**
pull_request:
paths:
- tree_sitter/**
- tests/**
workflow_dispatch:
concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true
jobs:
build:
strategy:
fail-fast: false
matrix:
python: ["3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-latest, macos-13, windows-latest]
runs-on: ${{matrix.os}}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Set up Python ${{matrix.python}}
uses: actions/setup-python@v5
with:
python-version: ${{matrix.python}}
- name: Lint
continue-on-error: true
run: pipx run ruff check . --output-format=github
- name: Build
run: pip install -v -e .[tests]
env:
CFLAGS: -Wextra -Og -g -fno-omit-frame-pointer
- name: Test
run: python -munittest -v