-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (42 loc) · 1.1 KB
/
run_tests.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
46
47
48
49
50
51
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
build-and-test:
name: Build & test - ${{ matrix.os }} - ${{ matrix.python-version }}
strategy:
fail-fast: false
matrix:
os: [ "ubuntu-latest", "macos-12", "macos-13", "macos-14", "windows-latest" ]
python-version: [ "3.11" ]
defaults:
run:
shell: bash
runs-on: ${{ matrix.os }}
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up python
id: setup-python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Install dependencies
run: poetry install
- name: Build the project
run: |
./build.sh
- name: Run tests
run: |
poetry run pytest tests/c_bindings_test.py