mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2026-01-07 03:59:48 -06:00
Updated for Ci-testing
Updated for Ci-testing
This commit is contained in:
6
.github/workflows/cd-development.yml
vendored
6
.github/workflows/cd-development.yml
vendored
@@ -54,12 +54,17 @@ jobs:
|
||||
run: |
|
||||
pip install -r requirements.txt
|
||||
pip install -r requirements-test.txt
|
||||
pip install -e .
|
||||
|
||||
- name: Run smoke tests
|
||||
env:
|
||||
PYTHONPATH: ${{ github.workspace }}
|
||||
run: |
|
||||
pytest -m smoke -v --tb=short
|
||||
|
||||
- name: Run unit tests (parallel)
|
||||
env:
|
||||
PYTHONPATH: ${{ github.workspace }}
|
||||
run: |
|
||||
pytest -m unit -v -n auto --dist loadfile
|
||||
|
||||
@@ -68,6 +73,7 @@ jobs:
|
||||
DATABASE_URL: postgresql://test_user:test_password@localhost:5432/test_db
|
||||
FLASK_APP: app.py
|
||||
FLASK_ENV: testing
|
||||
PYTHONPATH: ${{ github.workspace }}
|
||||
run: |
|
||||
pytest -m "integration and not slow" -v
|
||||
|
||||
|
||||
2
.github/workflows/cd-release.yml
vendored
2
.github/workflows/cd-release.yml
vendored
@@ -62,12 +62,14 @@ jobs:
|
||||
run: |
|
||||
pip install -r requirements.txt
|
||||
pip install -r requirements-test.txt
|
||||
pip install -e .
|
||||
|
||||
- name: Run complete test suite
|
||||
env:
|
||||
DATABASE_URL: postgresql://test_user:test_password@localhost:5432/test_db
|
||||
FLASK_APP: app.py
|
||||
FLASK_ENV: testing
|
||||
PYTHONPATH: ${{ github.workspace }}
|
||||
run: |
|
||||
pytest -v --cov=app --cov-report=xml --cov-report=html --cov-report=term \
|
||||
--junitxml=junit.xml
|
||||
|
||||
17
.github/workflows/ci-comprehensive.yml
vendored
17
.github/workflows/ci-comprehensive.yml
vendored
@@ -33,8 +33,11 @@ jobs:
|
||||
run: |
|
||||
pip install -r requirements.txt
|
||||
pip install -r requirements-test.txt
|
||||
pip install -e .
|
||||
|
||||
- name: Run smoke tests
|
||||
env:
|
||||
PYTHONPATH: ${{ github.workspace }}
|
||||
run: |
|
||||
pytest -m smoke -v --tb=short --no-cov
|
||||
|
||||
@@ -75,8 +78,11 @@ jobs:
|
||||
run: |
|
||||
pip install -r requirements.txt
|
||||
pip install -r requirements-test.txt
|
||||
pip install -e .
|
||||
|
||||
- name: Run unit tests - ${{ matrix.test-group }}
|
||||
env:
|
||||
PYTHONPATH: ${{ github.workspace }}
|
||||
run: |
|
||||
pytest -m "unit and ${{ matrix.test-group }}" -v --cov=app --cov-report=xml --cov-report=html
|
||||
|
||||
@@ -134,12 +140,14 @@ jobs:
|
||||
run: |
|
||||
pip install -r requirements.txt
|
||||
pip install -r requirements-test.txt
|
||||
pip install -e .
|
||||
|
||||
- name: Run integration tests
|
||||
env:
|
||||
DATABASE_URL: postgresql://test_user:test_password@localhost:5432/test_db
|
||||
FLASK_APP: app.py
|
||||
FLASK_ENV: testing
|
||||
PYTHONPATH: ${{ github.workspace }}
|
||||
run: |
|
||||
pytest -m integration -v --cov=app --cov-report=xml --cov-report=html
|
||||
|
||||
@@ -182,8 +190,11 @@ jobs:
|
||||
run: |
|
||||
pip install -r requirements.txt
|
||||
pip install -r requirements-test.txt
|
||||
pip install -e .
|
||||
|
||||
- name: Run security tests
|
||||
env:
|
||||
PYTHONPATH: ${{ github.workspace }}
|
||||
run: |
|
||||
pytest -m security -v --tb=short
|
||||
|
||||
@@ -242,12 +253,14 @@ jobs:
|
||||
run: |
|
||||
pip install -r requirements.txt
|
||||
pip install -r requirements-test.txt
|
||||
pip install -e .
|
||||
|
||||
- name: Run database tests
|
||||
env:
|
||||
DATABASE_URL: postgresql://test_user:test_password@localhost:5432/test_db
|
||||
FLASK_APP: app.py
|
||||
FLASK_ENV: testing
|
||||
PYTHONPATH: ${{ github.workspace }}
|
||||
run: |
|
||||
pytest -m database -v --cov=app --cov-report=xml
|
||||
|
||||
@@ -291,12 +304,14 @@ jobs:
|
||||
run: |
|
||||
pip install -r requirements.txt
|
||||
pip install -r requirements-test.txt
|
||||
pip install -e .
|
||||
|
||||
- name: Run database tests
|
||||
env:
|
||||
DATABASE_URL: sqlite:///test.db
|
||||
FLASK_APP: app.py
|
||||
FLASK_ENV: testing
|
||||
PYTHONPATH: ${{ github.workspace }}
|
||||
run: |
|
||||
pytest -m database -v --cov=app --cov-report=xml
|
||||
|
||||
@@ -437,12 +452,14 @@ jobs:
|
||||
run: |
|
||||
pip install -r requirements.txt
|
||||
pip install -r requirements-test.txt
|
||||
pip install -e .
|
||||
|
||||
- name: Run full test suite
|
||||
env:
|
||||
DATABASE_URL: postgresql://test_user:test_password@localhost:5432/test_db
|
||||
FLASK_APP: app.py
|
||||
FLASK_ENV: testing
|
||||
PYTHONPATH: ${{ github.workspace }}
|
||||
run: |
|
||||
pytest -v --cov=app --cov-report=xml --cov-report=html --cov-report=term
|
||||
|
||||
|
||||
Reference in New Issue
Block a user