This commit is contained in:
jscampucci
2025-06-25 17:25:26 +02:00
parent 1bb84445fe
commit 56c5b117d7
2 changed files with 50 additions and 40 deletions

50
.github/workflows/test.yml vendored Normal file
View File

@@ -0,0 +1,50 @@
name: Build
on:
push:
branches:
- 16.0
jobs:
test:
runs-on: ubuntu-22.04
container: ${{ matrix.container }}
name: ${{ matrix.name }}
strategy:
fail-fast: false
matrix:
include:
- container: ghcr.io/oca/oca-ci/py3.10-odoo18.0:latest
name: test with Odoo
- container: ghcr.io/oca/oca-ci/py3.10-ocb18.0:latest
name: test with OCB
makepot: "true"
services:
postgres:
image: postgres:12.0
env:
POSTGRES_USER: odoo
POSTGRES_PASSWORD: odoo
POSTGRES_DB: odoo
ports:
- 5432:5432
env:
OCA_ENABLE_CHECKLOG_ODOO: "1"
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: Install addons and dependencies
run: oca_install_addons
- name: Check licenses
run: manifestoo -d . check-licenses
- name: Check development status
run: manifestoo -d . check-dev-status --default-dev-status=Beta
- name: Initialize test db
run: oca_init_test_database
- name: Run tests
run: oca_run_tests
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}