-
Notifications
You must be signed in to change notification settings - Fork 42
50 lines (47 loc) · 1.43 KB
/
main.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
name: "Tests"
on:
push:
branches: [ "master" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "master" ]
schedule:
- cron: '20 17 * * 5'
jobs:
tests:
name: Test on ${{ matrix.os }} with ${{ matrix.python_version }} and ${{ matrix.compiler }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python_version: ['3.12'] #['3.9', '3.10', '3.11', '3.12']
compiler: ['clang', 'gcc', 'clang-15']
exclude:
- os: ubuntu-latest
compiler: 'clang-15'
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
- name: Install dependencies
env:
CC: ${{ matrix.compiler }}
run: |
python -m pip install --upgrade pip pytest pytest-asyncio
pip install -vv -e '.'
if: matrix.compiler != 'clang-15'
- name: Install dependencies (clang-15)
env:
CC: clang
run: |
ln -s $(brew --prefix llvm@15)/bin/clang /usr/local/bin/clang
python -m pip install --upgrade pip pytest pytest-asyncio
pip install -vv -e '.'
if: matrix.compiler == 'clang-15'
- name: Test with pytest
run: |
pytest -vv tests/