mbcp/.github/workflows/pytest.yml

24 lines
532 B
YAML
Raw Normal View History

2024-08-28 04:22:22 +08:00
name: pytest
on:
push:
branches:
- main
jobs:
RunTest:
runs-on: ubuntu-latest
2024-08-28 04:28:06 +08:00
name: Unit tests
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11.4' # Define your project python version
- id: run-tests
uses: dima-engineer/pytest-reporter@v3
with:
cov-omit-list: tests/*
cov-threshold-single: 85
cov-threshold-total: 90
async-tests: true
poetry-version: 1.4.2