forked from tree-sitter/py-tree-sitter
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (51 loc) · 1.28 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
45
46
47
48
49
50
51
52
53
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python:
- "3.5"
- "3.8"
- pypy-3.7
install_libcxx:
- false
- true
exclude:
- os: windows-latest
install_libcxx: true
- os: macos-latest
install_libcxx: true
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
submodules: true
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Uninstall libcxx
if: ${{ matrix.os == 'ubuntu-latest' && !matrix.install_libcxx }}
run: |
DEBIAN_FRONTEND=noninteractive sudo apt-get purge -y 'libc++*'
- name: Install libcxx
if: ${{ matrix.install_libcxx }}
run: |
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y libc++-dev libc++abi-dev
- name: Install flake8
run: python -m pip install flake8
- name: Fetch fixtures
run: ./script/fetch-fixtures
- name: Lint
run: ./script/lint
- name: Test
run: ./script/test