build: migrate to changesets #669
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |