-
Notifications
You must be signed in to change notification settings - Fork 28
31 lines (29 loc) · 1.09 KB
/
ci.yaml
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
name: ci
on:
push:
pull_request:
schedule:
- cron: '0 0 * * 0' # weekly
jobs:
build:
runs-on: ubuntu-latest
name: "python ${{ matrix.python-version }} xcbver ${{ matrix.xcbver }}"
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "pypy3.10"]
xcbver: [xcb-proto-1.15.2, xcb-proto-1.16.0, master]
steps:
- uses: actions/checkout@v4
- name: Set up python "${{ matrix.python-version }}"
uses: actions/setup-python@v5
with:
python-version: "${{ matrix.python-version }}"
- uses: haskell-actions/setup@v2
with:
ghc-version: '9.6'
cabal-version: latest
- run: cabal update
- run: sudo apt install x11-apps python3-pytest python3-cffi flake8
- run: git clone https://gitlab.freedesktop.org/xorg/proto/xcbproto.git proto && cd proto && git checkout ${{ matrix.xcbver }}
- run: make XCBDIR=./proto/src check