Skip to content

ci: update actions #131

ci: update actions

ci: update actions #131

Workflow file for this run

name: CI
on:
push:
pull_request:
workflow_dispatch:
jobs:
build_asan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Build Python+ASAN
shell: /usr/bin/bash {0}
run: |
git clone --depth=1 -b 3.10 https://github.com/python/cpython.git
cd cpython
./configure --with-assertions --with-address-sanitizer --with-undefined-behavior-sanitizer --with-pydebug --disable-shared "--prefix=$(pwd)/opt"
make -j2
make install
./python -m ensurepip
- name: Fetch fixtures
run: ./script/fetch-fixtures
- name: Test
run: |
CFLAGS="-O0 -g" ./cpython/python setup.py test
./cpython/python -c 'import tree_sitter'
build:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python:
- "3.6.8"
- "3.8.17"
- "3.10.11"
- pypy-3.7
install_libcxx:
- false
- true
exclude:
- os: windows-latest
install_libcxx: true
- os: macos-latest
install_libcxx: true
- os: macos-latest
python: pypy-3.7
- os: ubuntu-latest
python: "3.6.15"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-python@v4
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
shell: bash
run: |
CFLAGS="-O0 -g" python setup.py test