Skip to content

Commit a0fca3a

Browse files
committed
Add tests for parsing SDL headers.
1 parent 689e870 commit a0fca3a

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/parse-sdl.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# This makes sure that the latest versions of the SDL headers parse correctly.
2+
3+
name: Parse SDL
4+
5+
on:
6+
push:
7+
pull_request:
8+
9+
defaults:
10+
run:
11+
shell: bash
12+
13+
jobs:
14+
parse_sdl:
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
matrix:
18+
os: ["windows-2019", "macos-latest"]
19+
python-version: ["3.x"]
20+
sdl-version: ["2.0.14", "2.0.16"]
21+
fail-fast: true
22+
23+
steps:
24+
- uses: actions/checkout@v1
25+
- name: Checkout submodules
26+
run: |
27+
git submodule update --init --recursive --depth 1
28+
- name: Set up Python ${{ matrix.python-version }}
29+
uses: actions/setup-python@v2
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
- name: Install Python dependencies
33+
run: |
34+
python -m pip install --upgrade pip
35+
- name: Build package.
36+
run: |
37+
python setup.py build
38+
env:
39+
SDL_VERSION: ${{ matrix.sdl-version }}

0 commit comments

Comments
 (0)