-
Notifications
You must be signed in to change notification settings - Fork 16
38 lines (33 loc) · 1.03 KB
/
run_tests.yaml
File metadata and controls
38 lines (33 loc) · 1.03 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
name: Run Unit Tests
on:
push:
# branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ${{ matrix.os }}
continue-on-error: true
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.9', '3.11', '3.12']
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
# configure python
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install required system libraries
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt install libopengl0 libglu1-mesa -y
# install deps
- name: Install dependencies for ${{ matrix.os }} Python ${{ matrix.python-version }}
run: |
python -m pip install --upgrade pip
pip install -e .
# find and run all unit tests
- name: Run unit tests
run: python -m unittest discover -s tests