1010 type : string
1111 secrets :
1212 AIGNOSTICS_CLIENT_ID_DEVICE_STAGING :
13- required : false
13+ required : true
1414 AIGNOSTICS_REFRESH_TOKEN_STAGING :
15- required : false
15+ required : true
1616 GCP_CREDENTIALS_STAGING :
17- required : false
17+ required : true
1818 BETTERSTACK_HEARTBEAT_URL_FLOWS_STAGING :
19- required : false
19+ required : true
2020 AIGNOSTICS_CLIENT_ID_DEVICE_PRODUCTION :
21- required : false
21+ required : true
2222 AIGNOSTICS_REFRESH_TOKEN_PRODUCTION :
23- required : false
23+ required : true
2424 GCP_CREDENTIALS_PRODUCTION :
25- required : false
25+ required : true
2626 BETTERSTACK_HEARTBEAT_URL_FLOWS_PRODUCTION :
27- required : false
27+ required : true
2828 CODECOV_TOKEN :
29- required : false
29+ required : true
3030 SONAR_TOKEN :
31- required : false
31+ required : true
32+ SENTRY_DSN :
33+ required : true
3234
3335env :
3436 # https://gist.github.com/NodeJSmith/e7e37f2d3f162456869f015f842bcf15
3739
3840jobs :
3941
40- test :
42+ test-scheduled-daily :
4143 runs-on : " ubuntu-latest"
4244 permissions :
4345 attestations : write
5961 cache-dependency-glob : uv.lock
6062
6163 - name : Install dev tools
62- if : ${{ matrix.runner == 'ubuntu-latest' || matrix.runner == 'ubuntu-24.04-arm' }}
6364 shell : bash
6465 run : .github/workflows/_install_dev_tools.bash
6566
@@ -177,7 +178,7 @@ jobs:
177178 uses : actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
178179 if : ${{ always() && (env.GITHUB_WORKFLOW_RUNTIME != 'ACT') }}
179180 with :
180- name : test-results-${{ matrix.runner }}
181+ name : test-results-ubuntu-latest
181182 path : |
182183 reports/mypy_junit.xml
183184 reports/junit_*.xml
@@ -245,11 +246,15 @@ jobs:
245246 if : always()
246247 env :
247248 BETTERSTACK_HEARTBEAT_URL : " ${{ inputs.platform_environment == 'staging' && secrets.BETTERSTACK_HEARTBEAT_URL_FLOWS_STAGING || secrets.BETTERSTACK_HEARTBEAT_URL_FLOWS_PRODUCTION }}"
249+ SENTRY_DSN : ${{ secrets.SENTRY_DSN }}
248250 shell : bash
249251 run : |
250252 EXIT_CODE=${{ steps.test-status.outputs.exit_code }}
251253 FAILED_TESTS="${{ steps.test-status.outputs.failed_tests }}"
252254
255+ # Send heartbeat to Sentry, defining the schedule on the fly
256+ SENTRY_EXIT_CODE=$(sentry-cli monitors run -e CI --schedule "0 12 * * *" --check-in-margin 30 --max-runtime 1 scheduled-testing-${{ inputs.platform_environment }}-hourly --timezone "Europe/Berlin" -- sh -c "exit $EXIT_CODE")
257+
253258 # Provide heartbeat to BetterStack for monitoring/alerting if heartbeat url is configured as secret
254259 if [ -n "$BETTERSTACK_HEARTBEAT_URL" ]; then
255260 BETTERSTACK_METADATA_PAYLOAD=$(jq -n \
@@ -293,9 +298,9 @@ jobs:
293298 smoke: $smoke_status,
294299 unit: $unit_status,
295300 integration: $integration_status,
296- e2e : $e2e_status ,
297- e2e_long_running : $e2e_long_status ,
298- e2e_very_long_running: $e2e_very_long_status
301+ e2e_regular : $e2e_regular_status ,
302+ e2e_long_runnin : $e2e_long_running_status ,
303+ e2e_very_long_running: $e2e_very_long_running_status
299304 },
300305 timestamp: $timestamp,
301306 }'
@@ -314,19 +319,19 @@ jobs:
314319
315320 - name : Upload coverage reports to Codecov
316321 uses : codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 # v5.5.1
317- if : ${{ !cancelled() && (env.GITHUB_WORKFLOW_RUNTIME != 'ACT') && matrix.runner == 'ubuntu-latest' }}
322+ if : ${{ !cancelled() && (env.GITHUB_WORKFLOW_RUNTIME != 'ACT')}}
318323 with :
319324 token : ${{ secrets.CODECOV_TOKEN }}
320325 slug : aignostics/python-sdk
321326
322327 - name : Upload test results to Codecov
323- if : ${{ !cancelled() && (env.GITHUB_WORKFLOW_RUNTIME != 'ACT') && matrix.runner == 'ubuntu-latest' }}
328+ if : ${{ !cancelled() && (env.GITHUB_WORKFLOW_RUNTIME != 'ACT') }}
324329 uses : codecov/test-results-action@47f89e9acb64b76debcd5ea40642d25a4adced9f # v1.1.1
325330 with :
326331 token : ${{ secrets.CODECOV_TOKEN }}
327332
328333 - name : SonarQube Scan
329- if : ${{ !cancelled() && (env.GITHUB_WORKFLOW_RUNTIME != 'ACT') && matrix.runner == 'ubuntu-latest' }}
334+ if : ${{ !cancelled() && (env.GITHUB_WORKFLOW_RUNTIME != 'ACT') }}
330335 uses : SonarSource/sonarqube-scan-action@fd88b7d7ccbaefd23d8f36f73b59db7a3d246602 # v6.0.0
331336 env :
332337 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments