-
Notifications
You must be signed in to change notification settings - Fork 23
65 lines (52 loc) · 1.88 KB
/
test_linux.yml
File metadata and controls
65 lines (52 loc) · 1.88 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
name: Test Linux
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
# Skip running if the commit message contains '[ci skip]'
if: "! contains(toJSON(github.event.commits.*.message), '[ci skip]')"
name: Build wheels - ${{ matrix.os }}-${{ matrix.arch }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
arch: x64
- os: ubuntu-24.04-arm
arch: aarch64
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.12'
- name: install packages
run: sudo apt-get update && sudo apt-get install -y xorg-dev libglu1-mesa-dev xpra xserver-xorg-video-dummy freeglut3-dev
- name: install python packages
run: python3 -m pip install numpy ruff ty
- name: configure
run: |
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DPYTHON_EXECUTABLE=$(python3 -c "import sys; print(sys.executable)") -DPOLYSCOPE_BACKEND_OPENGL3_EGL=ON ..
- name: build
run: cd build && cmake --build . --parallel 4 # limit the number of jobs, it is running all and blowing up on CI machine
- name: run test backend mock
run: python3 test/polyscope_test.py -v --backend=openGL_mock
- name: run test backend EGL
run: python3 test/polyscope_test.py -v --backend=openGL3_egl
- name: run type checker (ty)
run: ty check .
continue-on-error: true # don't fail the whole job if this fails
- name: run linter (ruff)
run: ruff check .
continue-on-error: true # don't fail the whole job if this fails
- name: run format checker (ruff)
run: ruff format --check .
continue-on-error: true # don't fail the whole job if this fails