Skip to content

Commit

Permalink
Update code_coverage.yaml to improve Docker test execution and Codeco…
Browse files Browse the repository at this point in the history
…v upload
  • Loading branch information
mrT23 committed Aug 6, 2024
1 parent 96d3f3c commit e717e8a
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .github/workflows/code_coverage.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
name: Code-coverage

on:
push:
branches:
- main
workflow_dispatch:
# push:
# branches:
# - main
pull_request:
branches:
- main
Expand Down Expand Up @@ -36,15 +37,11 @@ jobs:
- id: code_cov
name: Test dev docker
run: |
docker run --rm codiumai/pr-agent:test pytest tests/unittest --cov=pr_agent
docker run --name test_container codiumai/pr-agent:test pytest tests/unittest --cov=pr_agent --cov-report term --cov-report xml:coverage.xml
docker cp test_container:/app/coverage.xml coverage.xml
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
files: ./coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}
flags: unittests
name: code-coverage
fail_ci_if_error: true


token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit e717e8a

Please sign in to comment.