Skip to content

Commit

Permalink
Rafatoração
Browse files Browse the repository at this point in the history
  • Loading branch information
thinogueiras committed Mar 10, 2024
1 parent 9fa1697 commit 1e97f6c
Showing 1 changed file with 27 additions and 3 deletions.
30 changes: 27 additions & 3 deletions .github/workflows/continuous-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,30 @@ on:

jobs:
api-tests:
timeout-minutes: 15
runs-on: ubuntu-latest
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
Expand All @@ -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
SLACK_USERNAME: FAILURE

reports:
if: always()
needs: [api-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/[email protected]
with:
gh_access_token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1e97f6c

Please sign in to comment.