diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index acdd01913e01f..085d58625619a 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -167,7 +167,7 @@ jobs: - name: Run base Odoo tests run: | export ODOO_IMAGE=${{ needs.combine-docker.outputs.IMAGE_REV }} - docker compose -f tests/docker-compose.yml run --rm --remove-orphans odoo ./odoo-bin -d test --test-enable --stop + bash tests/run_tests.sh - name: Cleanup if: always() diff --git a/tests/run_tests.sh b/tests/run_tests.sh new file mode 100644 index 0000000000000..ba2b5aeafeb06 --- /dev/null +++ b/tests/run_tests.sh @@ -0,0 +1,20 @@ +#!/usr/bin/env bash + +set -e +set -u +set -o pipefail + +docker compose -f tests/docker-compose.yml up -d +echo "---*** Running Odoo tests at_install ***---" +docker compose -f tests/docker-compose.yml exec odoo ./odoo-bin -d test --addons-path=addons,odoo/addons \ +-i base,\ +account \ +--test-enable --test-tags=-post_install \ +--stop-after-init +echo "---*** Running Odoo tests post_install ***---" +docker compose -f tests/docker-compose.yml exec odoo ./odoo-bin -d test --addons-path=addons,odoo/addons \ +--test-enable --test-tags=/base\ +/account \ +--stop-after-init +docker compose -f tests/docker-compose.yml down -v +