-
Notifications
You must be signed in to change notification settings - Fork 125
69 lines (63 loc) · 1.85 KB
/
Copy pathci.yml
File metadata and controls
69 lines (63 loc) · 1.85 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Python CI
on:
pull_request:
branches:
- main
permissions:
contents: read
pull-requests: write
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
test:
strategy:
matrix:
os:
- macos-26
- macos-26-intel
- ubuntu-24.04
# TODO: fails on ARM
# - ubuntu-24.04-arm
- windows-2025
- windows-11-arm
python-version:
- '3.14'
include:
- os: macos-26
display: MacOS 26 ARM
- os: macos-26-intel
display: MacOS 26 Intel
- os: ubuntu-24.04
display: Ubuntu 24.04 Intel
- os: ubuntu-24.04-arm
# TODO: fails on ARM
# display: Ubuntu 24.04 ARM
# - os: windows-2025
display: Windows 11 Intel
- os: windows-11-arm
display: Windows 11 (ARM)
fail-fast: false
name: ${{ matrix.display }} / Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4.2.2
- uses: actions/setup-python@v5.6.0
with:
python-version: ${{ matrix.python-version }}
cache: pip
- if: matrix.os == 'ubuntu-24.04' || matrix.os == 'ubuntu-24.04-arm'
uses: awalsh128/cache-apt-pkgs-action@v1.5.1
with:
packages: libegl1
version: 1.0
execute_install_scripts: true
- name: Install dependencies
run: python -m pip install -r requirements.txt
- name: Check for formatting errors
run: python -m ruff format ./**/*.py
# TODO: resolve all linting errors
# - name: Check for linting errors
# run: python -m ruff check ./**/*.py
- name: Run test suite
run: python -m pytest