Skip to content

[FIX] #893 don't break on invoices with different analytic distributions #529

[FIX] #893 don't break on invoices with different analytic distributions

[FIX] #893 don't break on invoices with different analytic distributions #529

Workflow file for this run

name: tests
on:
pull_request:
branches:
- "16.0*"
push:
branches:
- "16.0"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build docker image
run: |
git config --global init.defaultBranch main
git config --global user.email "[email protected]"
git config --global user.name "Your Name"
pip install git-aggregator
cd _docker
mkdir -p odoo/local-src odoo/external-src data songs
cp -r ../ps* odoo/local-src
# TODO: remove when this one is migrated
rm -rf odoo/local-src/ps_planning
cd odoo/external-src
gitaggregate -c ../../../repos.yml
cd ../..
cp ../requirements.txt .
docker compose build || true
- name: Run tests
run: |
cd _docker
docker compose run --name odoo_runtests odoo sh -c "runtests && coverage xml"
docker cp odoo_runtests:/odoo/coverage.xml ..
- uses: codecov/codecov-action@v3
with:
files: coverage.xml
token: ${{ secrets.CODECOV_TOKEN }}