mirror of
https://github.com/wekan/wekan.git
synced 2025-09-22 01:50:48 +02:00
Add GitHub Actions workflow for running tests with coverage and update pytest options for verbose output
This commit is contained in:
parent
61eb25314e
commit
6b3560c8d3
2 changed files with 26 additions and 1 deletions
25
.github/workflows/api-testing.yml
vendored
Normal file
25
.github/workflows/api-testing.yml
vendored
Normal 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
|
|
@ -1,3 +1,3 @@
|
|||
[pytest]
|
||||
testpaths = tests
|
||||
addopts = -s
|
||||
addopts = -s -v
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue