Skip to content

Commit

Permalink
[TESTS] Check warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
rousseldenis committed Jun 14, 2024
1 parent d2c9a71 commit 5ad45ef
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)}}

0 comments on commit 5ad45ef

Please sign in to comment.