-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (36 loc) · 1.06 KB
/
functional_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Functional tests
on:
workflow_dispatch:
push:
branches-ignore:
- main
schedule:
- cron: "0 5 * * *"
jobs:
functional_tests:
runs-on: "ubuntu-latest"
environment: test
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: "Install dependencies"
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: "Try to get data using SDK"
run: "python ./run_checks.py"
env:
PRIVATE_KEY: "${{ secrets.PRIVATE_KEY }}"
VISITOR_ID: "${{ secrets.VISITOR_ID }}"
REQUEST_ID: "${{ secrets.REQUEST_ID }}"
report-status:
needs: functional_tests
if: always()
uses: fingerprintjs/dx-team-toolkit/.github/workflows/report-workflow-status.yml@v1
with:
notification_title: 'Python SDK Functional Test has {status_message}'
job_status: ${{ needs.functional_tests.result }}
secrets:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}