-
Notifications
You must be signed in to change notification settings - Fork 26
45 lines (40 loc) · 1.02 KB
/
unittests.yml
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
name: Development
on: [pull_request]
jobs:
run:
name: Run unit tests
runs-on: ${{ matrix.os }}
strategy:
matrix:
build: [macos, ubuntu, windows]
include:
- build: macos
os: macos-latest
- build: ubuntu
os: ubuntu-latest
- build: windows
os: windows-latest
python-version: [3.8, 3.9, "3.10", "3.11"]
steps:
- uses: actions/checkout@master
- name: Get latest CMake and Ninja
uses: lukka/get-cmake@latest
with:
cmakeVersion: latest
ninjaVersion: latest
- name: Setup Python
uses: actions/setup-python@master
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: |
pip3 install --upgrade setuptools pip
pip3 install ".[all]"
- name: Run linters
run: |
pre-commit install
pre-commit run --all-files
- name: Run (unit) tests
run: |
pytest
pyflakes skorecard