Skip to content

Commit

Permalink
WIP: Testing Different pytest run
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanjohnson-lab committed Feb 7, 2024
1 parent fd058b1 commit f1cc2da
Showing 1 changed file with 19 additions and 20 deletions.
39 changes: 19 additions & 20 deletions .github/workflows/backend-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ jobs:
with:
python-version: ${{ matrix.version }}
cache: pip

- name: Create temporary directory
run: mkdir -p temp

- name: Install python dependencies
run: |
pip install -q -r requirements.txt
Expand All @@ -67,23 +63,26 @@ jobs:
python tasks.py db:test:reset
python tasks.py db:test:upgrade
alembic upgrade head
pytest --cov-report "xml:coverage.xml" --cov --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov | tee pytest-coverage.txt
- name: Pytest Coverage Comment
uses: MishaKav/pytest-coverage-comment@main
with:
title: Backend Coverage Report
pytest-coverage-path: temp/pytest-coverage.txt
pytest-xml-coverage-path: temp/coverage.xml
hide-badge: false
hide-report: false
create-new-comment: false
hide-comment: false
report-only-changed-files: false
remove-link-from-badge: false
junitxml-path: temp/pytest.xml
junitxml-title: Backend Test Summary
unique-id-for-comment: "backend-unit-tests"
- name: Run Integration Tests and Generate Coverage
run:
pytest --cov-report "xml:coverage.xml" --cov --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov
# - name: Pytest Coverage Comment
# uses: MishaKav/pytest-coverage-comment@main
# with:
# title: Backend Coverage Report
# pytest-coverage-path: temp/pytest-coverage.txt
# pytest-xml-coverage-path: temp/coverage.xml
# hide-badge: false
# hide-report: false
# create-new-comment: false
# hide-comment: false
# report-only-changed-files: false
# remove-link-from-badge: false
# junitxml-path: temp/pytest.xml
# junitxml-title: Backend Test Summary
# unique-id-for-comment: "backend-unit-tests"

shellcheck:
name: Shellcheck
Expand Down

0 comments on commit f1cc2da

Please sign in to comment.