-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 1.02 KB
/
pytest.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
---
# This action performs pytest testing with coverage reporting
# Name of the action
name: pytest Testing
# Events that trigger the action
on:
# push:
# pull_request:
workflow_dispatch:
jobs:
pytest:
name: pytest
runs-on: ubuntu-latest
# Set environment variables
env:
PYTHONPATH: ./
steps:
# checkout action documentation
# https://github.com/marketplace/actions/checkout
- name: Checkout repository
uses: actions/checkout@v4
# Set PYTHONPATH environment variable
- name: Set PYTHONPATH environment variable
run: |
export PYTHONPATH=$PYTHONPATH:${{ env.PYTHONPATH }}
# Install pytest packages
- name: Install pytest packages
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade -r \
requirements/requirements_pytest.txt
# Perform pytest testing and coverage analysis
- name: pytest
run: |
pytest --verbose --cov-report='term-missing' --cov='.'