Skip to content

[FIX] test workflows #20

[FIX] test workflows

[FIX] test workflows #20

Workflow file for this run

name: tests
on:
pull_request:
branches:
- "add_workflow"
push:
branches:
- "add_workflow"
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
name: Check Modules on ${{ github.event_name }}
env:
REPO_NAME: Addons-Controllo-Accessi
ODOO_RC: odoo.cfg
ADDONS_PATH: /opt/odoo/addons,/mnt/${{ REPO_NAME }}

Check failure on line 22 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / tests

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 22, Col: 20): Unrecognized named-value: 'REPO_NAME'. Located at position 1 within expression: REPO_NAME .github/workflows/test.yml (Line: 47, Col: 16): Unrecognized named-value: 'VERSION'. Located at position 1 within expression: VERSION

Check failure on line 22 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / tests

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 22, Col: 20): Unrecognized named-value: 'REPO_NAME'. Located at position 1 within expression: REPO_NAME .github/workflows/test.yml (Line: 47, Col: 16): Unrecognized named-value: 'VERSION'. Located at position 1 within expression: VERSION
TESTTAGS: inrim
VERSION: "17.0"
services:
postgres:
image: postgres:16.2
env:
POSTGRES_USER: odoo
POSTGRES_PASSWORD: odoo
POSTGRES_DB: odoo
ports:
- 5432:5432
steps:
- uses: docker-practice/actions-setup-docker@master
timeout-minutes: 12
- run: |
set -x
docker version
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/checkout@v4
with:
repository: INRIM/Odoo-Qa
path: oqa
ref: ${{ VERSION }}
token: ${{ secrets.CA_TOKEN }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade manifestoo
python -m pip install --upgrade coverage
touch $ODOO_RC
- name: Init Data
run: ${PWD}/oqa/bin/init_repo.sh
- name: Tests
run: docker run --rm -v ${PWD}/run_tests.sh:/mnt/tests/runtests.sh -v ${PWD}/:/mnt/${{ REPO_NAME }} -v ${PWD}/${ODOO_RC}:/etc/odoo/odoo.conf --network=host odoo:17.0 /mnt/tests/runtests.sh