-
-
Notifications
You must be signed in to change notification settings - Fork 112
35 lines (33 loc) · 873 Bytes
/
pytest.yaml
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
name: Unit tests
on:
push:
branches: ["master"]
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
cache: 'pip'
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install pytest pytest-coverage
- name: Test with pytest
run: |
pytest --cov
- name: Creating coverage folder
run: |
mkdir -p coverage
- name: Coverage Bagdge
uses: tj-actions/[email protected]
with:
output: coverage/coverage.svg
- name: Publish coverage report to coverage-badge branch
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: coverage-badge
folder: coverage