From 5ad45ef74705e4a3ed807159cf783bdd429f84f9 Mon Sep 17 00:00:00 2001 From: Denis Roussel Date: Fri, 14 Jun 2024 14:34:29 +0200 Subject: [PATCH] [TESTS] Check warnings --- .github/workflows/test.yml | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d26f5edaf4e9..aa8aafd81369 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -81,10 +81,30 @@ jobs: - name: Initialize test db run: oca_init_test_database - name: Run tests - run: oca_run_tests + id: run_tests + run: oca_run_tests 2>&1 | tee odoo.log + uses: actions/upload-artifact@v4 + with: + name: ${{ env.RUN_UNIQUE_ID }}_artifact_${{ matrix.step }}.log + path: logs/ + - name: Check warnings + continue-on-error: true + run: | + pip install checklog-odoo + checklog-odoo odoo.log - uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} - 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 == 'OCA' }} + + checklog: + runs-on: ubuntu-22 + name: checklog-odoo + steps: + - name: checklog + uses: actions/download-artifact@v4 + run: | + pip install checklog-odoo + checklog-odoo ${{join(*.log)}}