From 3443aecaeafc31b2bb4c9faa2eba48e2cbac6a55 Mon Sep 17 00:00:00 2001 From: Thiago Nogueira dos Santos Date: Sat, 9 Mar 2024 18:05:08 -0300 Subject: [PATCH] =?UTF-8?q?Rafatora=C3=A7=C3=A3o?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/continuous-testing.yml | 33 +++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) diff --git a/.github/workflows/continuous-testing.yml b/.github/workflows/continuous-testing.yml index f61686a..b371ca3 100644 --- a/.github/workflows/continuous-testing.yml +++ b/.github/workflows/continuous-testing.yml @@ -8,24 +8,31 @@ on: jobs: api-tests: + timeout-minutes: 15 runs-on: ubuntu-latest + continue-on-error: true name: API Tests ๐Ÿค–๐Ÿค– steps: - name: Checkout ๐Ÿš€๐Ÿš€ uses: actions/checkout@v4 + - name: Setup Python ๐Ÿ”ง๐Ÿ”ง + uses: actions/setup-python@v5 + with: + python-version: '3.11' + - name: Install dependencies โž•โž• run: pip install -r requirements.txt - name: API Tests ๐Ÿงช๐Ÿงช run: robot -d ./reports -v EMAIL:${{ secrets.EMAIL }} -v PASSWORD:${{ secrets.PASSWORD }} tests - - name: Upload Reports ๐Ÿ“–๐Ÿ“– + - name: Publish Robot Reports ๐Ÿ“„๐Ÿ“„ if: always() uses: actions/upload-artifact@v4 with: - name: Reports + name: Robot-Reports path: reports retention-days: 90 if-no-files-found: warn @@ -52,4 +59,24 @@ jobs: SLACK_ICON: https://cdn-icons-png.flaticon.com/512/3271/3271351.png SLACK_TITLE: 'Some tests failed' SLACK_MESSAGE: ':fire: Tests failed :fire:' - SLACK_USERNAME: FAILURE \ No newline at end of file + SLACK_USERNAME: FAILURE + + reports: + if: always() + needs: [api-tests] + runs-on: ubuntu-latest + continue-on-error: true + strategy: + fail-fast: false + name: Reports ๐Ÿ“„๐Ÿ“„ + steps: + - uses: actions/checkout@v4 + - name: Download Robot Reports + uses: actions/download-artifact@v4 + with: + name: Robot-Reports + path: reports + - name: Send report to commit + uses: joonvena/robotframework-reporter-action@v2.4 + with: + gh_access_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file