-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (47 loc) · 1.19 KB
/
Copy pathtest-suite.yaml
File metadata and controls
49 lines (47 loc) · 1.19 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
48
49
name: Test Suite
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Test Suite & Coverage (>98%)
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python: ["3.8", "3.9"]
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- uses: Gr1N/setup-poetry@v7
with:
poetry-version: 1.1.5
- uses: actions/cache@v2
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-${{ matrix.python }}-poetry-${{ hashFiles('poetry.lock') }}
- name: Install dependencies
run: |
poetry install
- name: Unit tests
run: |
poetry run pytest --cov=solutions --cov-fail-under=98 --cov-report=xml tests/
- name: "Upload coverage to Codecov"
uses: codecov/codecov-action@v2
with:
files: ./coverage.xml
env_vars: OS,PYTHON
verbose: true