Skip to content

Commit

Permalink
fix: test coi
Browse files Browse the repository at this point in the history
  • Loading branch information
JaeAeich committed May 18, 2024
1 parent b6d3e27 commit 77ae93e
Show file tree
Hide file tree
Showing 3 changed files with 619 additions and 11 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/code_test_unit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,14 @@ jobs:
- name: Install test dependencies
run: poetry install --only=test --no-interaction --no-root

- name: Run ATS
uses: codecov/codecov-ats@v0
env:
CODECOV_STATIC_TOKEN: ${{ secrets.CODECOV_STATIC_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- name: Run tests
run: poetry run pytest --cov app ${{ env.CODECOV_ATS_TESTS }}
- name: Run tests and generate coverage as test_unit.xml
run: poetry run pytest --cov-report term --cov-report xml:test_unit.xml --cov=tests/test_unit

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
flags: smart-tests
token: ${{ secrets.CODECOV_TOKEN }}
flags: test_unit
files: ./test_unit.xml
fail_ci_if_error: true
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
Binary file added test_unit
Binary file not shown.
Loading

0 comments on commit 77ae93e

Please sign in to comment.