Skip to content

Run Behave Tests

Run Behave Tests #22

name: Run Behave Tests
on:
schedule:
- cron: '0 1 * * *' # Esegue ogni giorno alle 01:00 UTC
workflow_dispatch: # Permette di eseguire manualmente il workflow
jobs:
integration_test:
runs-on: ubuntu-latest
name: Run Integration Tests
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.10.5
- uses: cryptic-wizard/[email protected]
with:
test-path: src/automation-test
test-output-name: results.json
notify:
needs: [ integration_test ]
runs-on: ubuntu-latest
name: Notify
steps:
- name: Report Status
if: always()
uses: ravsamhq/notify-slack-action@be814b201e233b2dc673608aa46e5447c8ab13f2 # v2
with:
status: ${{ needs.integration_test.result }}
#token: ${{ secrets.GITHUB_TOKEN }}
#notify_when: 'failure'
icon_success: ":white_check_mark:"
notification_title: '{workflow} has {status_message}'
message_format: '{emoji} <{workflow_url}|{workflow}> {status_message} in <{repo_url}|{repo}>'
footer: 'Linked to Repo <{repo_url}|{repo}>'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
#- name: Submit results to Xray
# env:
# JIRA_SERVER_URL: ${{ secrets.JIRA_SERVER_URL }}
# JIRA_USERNAME: ${{ secrets.JIRA_USERNAME }}
# JIRA_PASSWORD: ${{ secrets.JIRA_PASSWORD }}
# run: 'curl -H "Content-Type: multipart/form-data" -u $JIRA_USERNAME:$JIRA_PASSWORD -F "[email protected] [email protected]" "$JIRA_SERVER_URL/rest/raven/1.0/import/execution/behave/multipart?projectKey=PQ"'