-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (42 loc) · 1.3 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
40
41
42
43
44
45
46
47
name: Functional tests
on:
workflow_dispatch:
push:
branches-ignore:
- main
schedule:
- cron: "0 5 * * *"
jobs:
functional_tests:
name: Functional tests for Python ${{ matrix.python-version }}
runs-on: "ubuntu-latest"
environment: test
strategy:
fail-fast: false
max-parallel: 1
matrix:
python-version: [ "3.9", "3.10", "3.11", "3.12", "pypy3.9", "pypy3.10" ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- 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 }}