| 1 |
name: Test Report |
| 2 |
|
| 3 |
on: |
| 4 |
schedule: |
| 5 |
# Run 2h after the daily tests.yaml |
| 6 |
- cron: "0 8,20 * * *" |
| 7 |
workflow_dispatch: |
| 8 |
|
| 9 |
permissions: |
| 10 |
contents: write |
| 11 |
|
| 12 |
jobs: |
| 13 |
test-report: |
| 14 |
name: Test Report |
| 15 |
# Do not run the report job on forks |
| 16 |
if: github.repository == 'dask/dask' || github.event_name == 'workflow_dispatch' |
| 17 |
runs-on: ubuntu-latest |
| 18 |
env: |
| 19 |
GITHUB_TOKEN: ${{ github.token }} |
| 20 |
defaults: |
| 21 |
run: |
| 22 |
shell: bash -l {0} |
| 23 |
steps: |
| 24 |
- uses: actions/[email protected] |
| 25 |
with: |
| 26 |
repository: dask/distributed |
| 27 |
|
| 28 |
- name: Setup Conda Environment |
| 29 |
uses: conda-incubator/[email protected] |
| 30 |
with: |
| 31 |
miniforge-version: latest |
| 32 |
condarc-file: continuous_integration/condarc |
| 33 |
use-mamba: true |
| 34 |
# Note: this file is in the dask/distributed repo |
| 35 |
environment-file: continuous_integration/scripts/test-report-environment.yml |
| 36 |
activate-environment: dask |
| 37 |
|
| 38 |
- name: Show conda options |
| 39 |
run: conda config --show |
| 40 |
|
| 41 |
- name: mamba list |
| 42 |
run: mamba list |
| 43 |
|
| 44 |
- uses: actions/cache@v4 |
| 45 |
id: cache |
| 46 |
with: |
| 47 |
# Suffix is depending on the backend / OS. Let's be agnostic here |
| 48 |
# See https://docs.python.org/3/library/shelve.html#shelve.open |
| 49 |
path: | |
| 50 |
test_report* |
| 51 |
!test_report.html |
| 52 |
# Note: these files are in the dask/distributed repository |
| 53 |
key: ${{ hashFiles('continuous_integration/scripts/test_report*') }} |
| 54 |
|
| 55 |
- name: Generate report |
| 56 |
run: | |
| 57 |
python continuous_integration/scripts/test_report.py --repo dask/dask --max-days 90 --max-runs 30 --nfails 1 -o test_report.html |
| 58 |
python continuous_integration/scripts/test_report.py --repo dask/dask --max-days 7 --max-runs 30 --nfails 2 -o test_short_report.html --title "Test Short Report" |
| 59 |
mkdir deploy |
| 60 |
mv test_report.html test_short_report.html deploy/ |
| 61 |
|
| 62 |
- name: Deploy 🚀 |
| 63 |
uses: JamesIves/[email protected] |
| 64 |
with: |
| 65 |
branch: gh-pages |
| 66 |
folder: deploy |