-
Notifications
You must be signed in to change notification settings - Fork 27
60 lines (52 loc) · 1.35 KB
/
wheelbuild-benchmark-test.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
52
53
54
55
56
57
58
59
60
name: Build wheels and perform benchmarks
on:
pull_request:
branches: [develop, master]
push:
branches: [ci-debug]
jobs:
build_wheels:
name: Build wheels on for various systems
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest] #, windows-latest]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: '3.12'
- name: Build wheels
run: |
pip wheel --no-deps -w dist .
- uses: actions/upload-artifact@v4
with:
name: wheel
path: dist/
benchmark:
name: Benchmark tests
needs: [build_wheels]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/download-artifact@v4
with:
name: wheel
path: dist/
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: '3.12'
- name: Install wheel
run: pip install $(ls -1 dist/*.whl)
- name: Install pytest
run: pip install pytest pytest-cov
- name: Generate test signal
run: python benchmarks/generate_time_signal.py
- name: Run benchmarks
run: pytest --no-cov -rP benchmarks