mirror of
https://github.com/wekan/wekan.git
synced 2026-03-10 07:32:35 +01: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]
|
[pytest]
|
||||||
testpaths = tests
|
testpaths = tests
|
||||||
addopts = -s
|
addopts = -s -v
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue