From 2a4d6ccbed2f96a9337c6ab5927f5fcaebc731e4 Mon Sep 17 00:00:00 2001 From: Maxim Date: Mon, 5 Feb 2024 20:56:57 +0300 Subject: [PATCH] Update test workflows schedule --- .../options-tests-with-docker-build.yml | 22 ++++++++++++++++++- .../rest-api-tests-with-ghcr-rest-dev.yml | 22 ++++++++++++++++++- tests/rest_api/tests/base_test.py | 2 +- 3 files changed, 43 insertions(+), 3 deletions(-) diff --git a/.github/workflows/options-tests-with-docker-build.yml b/.github/workflows/options-tests-with-docker-build.yml index fdabb934..d3f0a8c0 100644 --- a/.github/workflows/options-tests-with-docker-build.yml +++ b/.github/workflows/options-tests-with-docker-build.yml @@ -2,7 +2,7 @@ name: Options tests with build rest:dev on: schedule: - - cron: "05 04 * * *" + - cron: "05 09 * * 1" push: jobs: @@ -69,3 +69,23 @@ jobs: with: name: Results path: "./tests/results" + + - name: Notify slack tests succeded + if: success() + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }} + uses: voxmedia/github-action-slack-notify-build@v1 + with: + channel_id: C03E3JJGLQL + status: SUCCESS + color: good + + - name: Notify slack tests failed + if: failure() + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }} + uses: voxmedia/github-action-slack-notify-build@v1 + with: + channel_id: C03E3JJGLQL + status: FAILED + color: danger diff --git a/.github/workflows/rest-api-tests-with-ghcr-rest-dev.yml b/.github/workflows/rest-api-tests-with-ghcr-rest-dev.yml index d51fcfc5..6464e6bb 100644 --- a/.github/workflows/rest-api-tests-with-ghcr-rest-dev.yml +++ b/.github/workflows/rest-api-tests-with-ghcr-rest-dev.yml @@ -2,7 +2,7 @@ name: Rest-api tests - ghcr.io/verapdf/rest:dev on: schedule: - - cron: "05 04 * * *" + - cron: "05 09 * * 1" push: jobs: @@ -44,3 +44,23 @@ jobs: with: name: Results path: "./results" + + - name: Notify slack tests succeded + if: success() + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }} + uses: voxmedia/github-action-slack-notify-build@v1 + with: + channel_id: C03E3JJGLQL + status: SUCCESS + color: good + + - name: Notify slack tests failed + if: failure() + env: + SLACK_BOT_TOKEN: ${{ secrets.SLACK_NOTIFICATIONS_BOT_TOKEN }} + uses: voxmedia/github-action-slack-notify-build@v1 + with: + channel_id: C03E3JJGLQL + status: FAILED + color: danger \ No newline at end of file diff --git a/tests/rest_api/tests/base_test.py b/tests/rest_api/tests/base_test.py index 80808629..c5491f24 100644 --- a/tests/rest_api/tests/base_test.py +++ b/tests/rest_api/tests/base_test.py @@ -24,7 +24,7 @@ class BaseClass: ("4e", "PDFA_4_E", "PDF/A-4E validation profile", 108, ("6.1.6.2", 1)), ("4f", "PDFA_4_F", "PDF/A-4F validation profile", 108, ("6.2.4.2", 3)), ("ua1", "PDFUA_1", "PDF/UA-1 validation profile", 104, ("7.18.8", 1)), - ("ua2", "PDFUA_2", "PDF/UA-2 validation profile", 90, ("5", 5)), + ("ua2", "PDFUA_2", "PDF/UA-2 validation profile", 91, ("5", 5)), ) FLAVOURS_LIST = sorted(