-
Notifications
You must be signed in to change notification settings - Fork 77
47 lines (45 loc) · 1.45 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
name: test cases
on:
schedule:
- cron: '0 11 11 * *'
push:
branches: [ master, dev ]
jobs:
run-tests:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
extra: [ base, excel, plot, all, dev ]
python-version: [ '3.9', '3.10', '3.11' ]
include:
- os: windows-latest
extra: all
python-version: '3.10'
env:
EXTRAS: ${{ matrix.extra }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout Repo
uses: actions/checkout@v2
- if: matrix.extra == 'plot' || matrix.extra == 'all'
name: Setup Graphviz
uses: ts-graphviz/setup-graphviz@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Test Dependencies
run: pip install -r requirements/test.pip
- if: matrix.extra == 'base'
name: Install Dependencies
run: pip install -e .
- if: matrix.extra != 'base'
name: Install Dependencies
run: pip install -e .[${{ matrix.extra }}]
- name: Run Test
run: coverage run --source=formulas -m unittest discover -s test -p 'test_*.py'
- if: matrix.python-version == '3.11' && matrix.extra == 'all' && matrix.os == 'ubuntu-latest'
name: Run Coveralls
run: coveralls --service=github