You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.4 KiB

  1. name: test Odoo addons
  2. on:
  3. pull_request:
  4. branches:
  5. - "15.0*"
  6. push:
  7. branches:
  8. - "15.0*"
  9. jobs:
  10. test:
  11. runs-on: ubuntu-latest
  12. container: ${{ matrix.container }}
  13. strategy:
  14. fail-fast: false
  15. matrix:
  16. include:
  17. - container: ghcr.io/oca/oca-ci/py3.8-odoo15.0:latest
  18. makepot: "true"
  19. - container: ghcr.io/oca/oca-ci/py3.8-ocb15.0:latest
  20. services:
  21. postgres:
  22. image: postgres:9.6
  23. env:
  24. POSTGRES_USER: odoo
  25. POSTGRES_PASSWORD: odoo
  26. POSTGRES_DB: odoo
  27. ports:
  28. - 5432:5432
  29. steps:
  30. - uses: actions/checkout@v2
  31. with:
  32. persist-credentials: false
  33. - name: Install addons and dependencies
  34. run: oca_install_addons
  35. - name: Check licenses
  36. run: manifestoo -d . check-licenses
  37. - name: Check development status
  38. run: manifestoo -d . check-dev-status --default-dev-status=Beta
  39. - name: Initialize test db
  40. run: oca_init_test_database
  41. - name: Run tests
  42. run: oca_run_tests
  43. - uses: codecov/codecov-action@v1
  44. - name: Update .pot files
  45. run: oca_export_and_push_pot https://x-access-token:${{ secrets.GIT_PUSH_TOKEN }}@github.com/${{ github.repository }}
  46. if: ${{ matrix.makepot == 'true' && github.event_name == 'push' && github.repository_owner == 'OCA' }}