Skip to content

workflow tests

workflow tests #1

Workflow file for this run

name: pre-commit

Check failure on line 1 in .github/workflows/tests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/tests.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: pre-commit
on:
pull_request:
branches:
- "16.0*"
push:
branches:
- "16.0"
jobs:
pre-commit:
runs-on: ubuntu-22.04
steps:
test:
runs-on: ubuntu-22.04
container: docker.io/onestein/odoo-ci:16.0
name: Odoo
services:
postgres:
image: postgres:12.0
env:
POSTGRES_USER: odoo
POSTGRES_PASSWORD: odoo
POSTGRES_DB: odoo
ports:
- 5432:5432
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
- name: Aggregate
run: gitaggregate -c repos.yaml
- name: Install external dependencies
run: oca_install_addons
- name: Pack
run: python3 scripts/pack.py --location . --package-file "package.txt" --destination package
- name: Run tests
run: oca_run_tests
env:
ADDONS_DIR: package
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}