-
-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (40 loc) · 1.04 KB
/
ci.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
name: Unit Tests
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'tests/**'
- 'src/**'
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Python 3
uses: actions/setup-python@v4
with:
python-version: '3.8'
- name: Setup timezone
uses: zcong1993/setup-timezone@master
with:
timezone: UTC
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r docs/requirements.txt
pip install -r requirements/requirements-tests.txt
- name: Install the development package itself
run: |
python -m pip install -e .
- name: Run tests with pytest and generate coverage report
run: pytest --cov=cr.wavelets --cov-report=xml
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v1
with:
fail_ci_if_error: true
verbose: true