-
Notifications
You must be signed in to change notification settings - Fork 4
34 lines (32 loc) · 1006 Bytes
/
run-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
# Your workflow name.
name: tests
# Run workflow on every push to master branch.
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install and configure Poetry
uses: snok/[email protected]
with:
version: 1.7.1
virtualenvs-create: false
- name: Install dependencies
run: |
poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi
- name: Test with pytest
run: |
python -m pytest --verbose --cov=stratestic --cov=tests --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false