-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (34 loc) · 939 Bytes
/
pull.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
name: Pull actions
on:
pull_request:
jobs:
tests:
runs-on: "ubuntu-latest"
name: Run tests
steps:
- name: Check out code from GitHub
uses: "actions/checkout@v3"
- name: Setup Python
uses: "actions/setup-python@v4"
with:
python-version: "3.10"
- name: Install requirements
run: python3 -m pip install -r requirements_test.txt -r requirements_release.txt
- name: Run tests
run: |
python3 -m pytest \
-vv \
-qq \
--timeout=9 \
--durations=10 \
--cov podpointclient \
--cov-report term \
--cov-report html \
-o console_output_style=count \
-p no:sugar \
tests
- name: Archive code coverage results
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: htmlcov/*