-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (31 loc) · 1020 Bytes
/
test.yaml
File metadata and controls
39 lines (31 loc) · 1020 Bytes
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
name: Tests
on: [push, pull_request]
jobs:
build:
name: "Unit Tests for python ${{ matrix.python }} on ${{ matrix.os }}"
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
python: ["3.8", "3.9"]
steps:
- name: Checkout repo
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry config virtualenvs.create false
poetry install --no-interaction
- name: Run Unit Tests
run: |
pytest --doctest-modules --cov=src/ --cov-report=term-missing --cov-report=xml src/ tests/
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
fail_ci_if_error: true