Skip to content

[UPD] README.rst

[UPD] README.rst #1571

Workflow file for this run

# Copyright 2021 Odoo Community Association
# Copyright 2022 Coop IT Easy SC
#
# SPDX-License-Identifier: AGPL-3.0-or-later
name: tests
on:
pull_request:
branches:
- "12.0*"
push:
branches:
- "12.0"
- "12.0-ocabot-*"
jobs:
test:
runs-on: ubuntu-latest
container: ${{ matrix.container }}
name: ${{ matrix.name }}
strategy:
fail-fast: false
matrix:
include:
# FIXME: .pots created by different runs are not identical. This
# results in an endless loop. Because both macavrac_base and
# polln_shift also depend on beesdoo_shift, they also generate a .pot
# for shift.
- container: ghcr.io/oca/oca-ci/py3.6-ocb12.0:latest
include: "macavrac_base"
# makepot: "true"
name: test with OCB
- container: ghcr.io/oca/oca-ci/py3.6-ocb12.0:latest
include: "polln_shift"
# makepot: "true"
name: test with OCB
- container: ghcr.io/oca/oca-ci/py3.6-ocb12.0:latest
exclude: "macavrac_base,polln_shift"
makepot: "true"
name: test with OCB
services:
postgres:
image: postgres:9.6
env:
POSTGRES_USER: odoo
POSTGRES_PASSWORD: odoo
POSTGRES_DB: odoo
ports:
- 5432:5432
env:
INCLUDE: "${{ matrix.include }}"
EXCLUDE: "${{ matrix.exclude }}"
steps:
- uses: actions/checkout@v2
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
# Fixes problem in https://github.com/beescoop/Obeesdoo/pull/297
- name: Install beesdoo_shift
run: odoo -d ${PGDATABASE} -i beesdoo_shift --stop-after-init
- name: Run tests
run: oca_run_tests
- uses: codecov/codecov-action@v1
- name: Update .pot files
run: oca_export_and_push_pot https://x-access-token:${{ secrets.GIT_PUSH_TOKEN }}@github.com/${{ github.repository }}
if: ${{ matrix.makepot == 'true' && github.event_name == 'push' && github.repository_owner == 'beescoop' }}