Add GitHub Actions workflow for running tests with coverage and update pytest options for verbose output

This commit is contained in:
omri zaher 2025-08-11 11:29:44 +03:00
parent 61eb25314e
commit 6b3560c8d3
2 changed files with 26 additions and 1 deletions

25
.github/workflows/api-testing.yml vendored Normal file
View file

@ -0,0 +1,25 @@
name: Run Tests with coverage
on:
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Run tests
run: pytest

View file

@ -1,3 +1,3 @@
[pytest]
testpaths = tests
addopts = -s
addopts = -s -v