Skip to content

[ADD] tests + pre-commit for ps_date_range_week #31

[ADD] tests + pre-commit for ps_date_range_week

[ADD] tests + pre-commit for ps_date_range_week #31

Workflow file for this run

name: tests
on:
pull_request:
branches:
- "14.0*"
push:
branches:
- "14.0"
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build docker image
run: |
git config --global init.defaultBranch main
pip install git-aggregator
cd _docker
mkdir -p odoo/local-src odoo/external-src data songs
# TODO: once they are migrated, add more ps_* modules here
cp -r ../ps_{crm,date_range_week,hr,timesheet_invoicing,project} odoo/local-src
cd odoo/external-src
gitaggregate -c ../../../repos.yml
cd ../..
cp ../requirements.txt .
docker-compose build
- name: Run tests
run: |
cd _docker
docker-compose run --name odoo_runtests odoo sh -c "runtests && coverage xml"
docker cp odoo_runtests:/odoo/coverage.xml ..
- uses: codecov/codecov-action@v3
with:
files: coverage.xml