From 550899473319f51dd23ead17e75cadfbd4e6a83d 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 | 32 +++++++++++++++++++++--- README.md | 2 +- 2 files changed, 29 insertions(+), 5 deletions(-) diff --git a/.github/workflows/continuous-testing.yml b/.github/workflows/continuous-testing.yml index f61686a..e3c9065 100644 --- a/.github/workflows/continuous-testing.yml +++ b/.github/workflows/continuous-testing.yml @@ -7,7 +7,8 @@ on: branches: [ main ] jobs: - api-tests: + tests: + timeout-minutes: 15 runs-on: ubuntu-latest name: API Tests πŸ€–πŸ€– @@ -15,17 +16,22 @@ jobs: - 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 +58,22 @@ 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: [tests] + runs-on: ubuntu-latest + continue-on-error: true + 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 diff --git a/README.md b/README.md index 25f5fdc..88c29c6 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ ## PrΓ©-requisitos mΓ­nimos de ambiente: -* [Python](https://www.python.org/downloads/) 3.10.x. +* [Python](https://www.python.org/downloads/) 3.11.x. ## Instalação do projeto: