Skip to content

Commit

Permalink
Merge pull request OCA#4682 from hbrunn/17.0-coverage
Browse files Browse the repository at this point in the history
[17.0][OU-ADD] enable coverage/codecov
  • Loading branch information
pedrobaeza authored Dec 19, 2024
2 parents 6032a87 + 1572dac commit 374c7ac
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ jobs:
pip install -r ./openupgrade/requirements.txt
# this is for v16 l10n_eg_edi_eta which crashes without it
pip install asn1crypto
pip install coverage
- name: Test data
run: |
if test -n "$(ls openupgrade/openupgrade_scripts/scripts/*/tests/data*.py 2> /dev/null)"; then
Expand Down Expand Up @@ -133,6 +134,8 @@ jobs:
echo Execution of Openupgrade with the update of the following modules : $MODULES_NEW
# Silence redundant logs from unlinking records (1 line is enough)
# to prevent log overflow
coverage run \
--source=$GITHUB_WORKSPACE/openupgrade/openupgrade_scripts/scripts \
$ODOO \
--addons-path=`echo $ADDONS_PATHS | awk -v OFS="," '$1=$1'` \
--database=$DB \
Expand All @@ -147,3 +150,9 @@ jobs:
--stop-after-init \
--without-demo=$MODULES_NEW \
--update=$MODULES_NEW
- name: Generate coverage.xml
run: coverage xml
- uses: codecov/codecov-action@v4
with:
files: coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit 374c7ac

Please sign in to comment.