This repository was archived by the owner on Dec 17, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
64 lines (56 loc) · 1.62 KB
/
test_python.yml
File metadata and controls
64 lines (56 loc) · 1.62 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
name: Test Python Bindings
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
test-python:
name: Test Python on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
#os: [ubuntu-latest, macos-latest]
os: [ubuntu-latest]
#python-version: ['3.10', '3.11', '3.12']
python-version: ['3.10']
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Install system dependencies (Ubuntu)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y \
libeigen3-dev \
libopenblas-dev \
libblas-dev \
liblapack-dev
- name: Install system dependencies (macOS)
if: runner.os == 'macOS'
run: |
brew install eigen openblas
- name: Install uv and set the python version
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
- name: Setup and run tests
working-directory: python
run: |
chmod +x run_tests.sh
./run_tests.sh
test-python-rollup:
runs-on: ubuntu-latest
needs: test-python
if: always()
steps:
- name: All tests passed
if: ${{ !contains(needs.*.result, 'failure') && !contains(needs.*.result, 'cancelled') }}
run: exit 0
- name: Some tests failed or cancelled
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
run: exit 1