-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.09 KB
/
testing.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
42
43
44
name: Run Test Suite
on:
- pull_request
jobs:
pytest:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
with:
# checkout full tree
fetch-depth: 0
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .[dev]
- name: Testing the code with pytest
run: |
python -m pytest --cov=lifecycle --cov-report=term --cov-report=xml
cat coverage.xml
coverage report --fail-under=80
smoketest:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
with:
# checkout full tree
fetch-depth: 0
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Make sure lifecycle can be installed and run using pipenv
run: |
python -m pip install pipenv
pipenv install --skip-lock
pipenv run lifecycle --help