-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (38 loc) · 1.31 KB
/
regression_suite.yaml
File metadata and controls
47 lines (38 loc) · 1.31 KB
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
---
name: Regression Suite
on:
push:
schedule:
- cron: "0 4 * * *"
jobs:
regression_matrix:
strategy:
max-parallel: 4
fail-fast: false
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} x64
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install Requirements
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade numpy cython pytest coverage setuptools
python -m pip install --upgrade --pre -r $GITHUB_WORKSPACE/requirements.txt
python -m pip install --upgrade --pre -r $GITHUB_WORKSPACE/tests/requirements.txt
python setup.py build_ext --inplace
- name: Run Regression Tests
run: python -m coverage run -m pytest
- name: Check Coverage
run: python -m coverage report --include=orso/** --fail-under=70 -m
- name: "Upload coverage to Codecov"
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.11'
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: false