Skip to content

Functional tests

Functional tests #549

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@v4
- uses: actions/setup-python@v5
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 }}