Test Report #2064
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: Test Report | |
on: | |
schedule: | |
# Run 2h after the daily tests.yaml | |
- cron: "0 8,20 * * *" | |
workflow_dispatch: | |
jobs: | |
test-report: | |
name: Test Report | |
# Do not run the report job on forks | |
if: github.repository == 'dask/distributed' || github.event_name == 'workflow_dispatch' | |
runs-on: ubuntu-latest | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/[email protected] | |
- name: Setup Conda Environment | |
uses: conda-incubator/[email protected] | |
with: | |
miniforge-version: latest | |
condarc-file: continuous_integration/condarc | |
use-mamba: true | |
environment-file: continuous_integration/scripts/test-report-environment.yml | |
activate-environment: dask-distributed | |
- name: Show conda options | |
run: conda config --show | |
- name: mamba list | |
run: mamba list | |
- uses: actions/cache@v4 | |
id: cache | |
with: | |
# Suffix is depending on the backend / OS. Let's be agnostic here | |
# See https://docs.python.org/3/library/shelve.html#shelve.open | |
path: | | |
test_report* | |
!test_report.html | |
key: ${{ hashFiles('continuous_integration/scripts/test_report*') }} | |
- name: Generate report | |
run: | | |
python continuous_integration/scripts/test_report.py --max-days 90 --max-runs 30 --nfails 1 -o test_report.html | |
python continuous_integration/scripts/test_report.py --max-days 7 --max-runs 30 --nfails 2 -o test_short_report.html --title "Test Short Report" | |
mkdir deploy | |
mv test_report.html test_short_report.html deploy/ | |
- name: Deploy 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: deploy |