-
Notifications
You must be signed in to change notification settings - Fork 282
51 lines (43 loc) · 1.23 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
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
python-version: ['3.8', '3.9', '3.10', '3.11']
experimental: [false]
include:
- os: ubuntu-20.04
python-version: '3.12'
experimental: true
steps:
- name: Cancel previous
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v4
with:
submodules: true
- name: setup python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install system packages
run: |
sudo apt-get install bison cmake flex g++
- name: Install Dependencies
run: pip install -r requirements.txt
# We have to put continue-on-error at the step level rather than the job
# level because the UI is broken:
# https://github.com/github-community/community/discussions/15452.
- name: Run Tests
run: python build_scripts/ci_script.py
continue-on-error: ${{ matrix.experimental }}