Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}
Loading