-
-
Notifications
You must be signed in to change notification settings - Fork 7
37 lines (31 loc) · 856 Bytes
/
unit-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
name: Unit Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: GitHub Checkout
uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install coveralls
- name: Unit test
env:
LUCIT_API_SECRET: ${{ secrets.LUCIT_API_SECRET }}
LUCIT_LICENSE_TOKEN: ${{ secrets.LUCIT_LICENSE_TOKEN }}
run: coverage run --source unicorn_binance_suite unittest_binance_suite.py
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
flags: unittests
name: codecov-umbrella
verbose: true