-
Notifications
You must be signed in to change notification settings - Fork 132
48 lines (39 loc) · 1.12 KB
/
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
name: tests
on:
push:
branches: [master]
pull_request:
branches: ['*']
jobs:
tests:
name: Py${{ matrix.python-version }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-22.04]
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/[email protected]
with:
submodules: recursive
- uses: actions/[email protected]
with:
python-version: '${{ matrix.python-version }}'
## Start Windows stuff
- uses: ilammy/[email protected]
if: startsWith(matrix.os, 'windows')
- name: Set Windows Compiler
if: startsWith(matrix.os, 'windows')
run: |
echo "CC=cl.exe" >> $GITHUB_ENV
echo "CXX=cl.exe" >> $GITHUB_ENV
## End Windows stuff
- name: Install from source
run: |
pip install --upgrade pip setuptools wheel
pip install .[test]
- name: Tests
run: |
pip install cython
cythonize tests/test_cython/cython_example.pyx
pytest