Test Report #297
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 }} | |
PYTHON_VERSION: 3.9 | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v4.1.1 | |
- name: Setup Conda Environment | |
uses: conda-incubator/setup-miniconda@v3.0.0 | |
with: | |
miniforge-variant: Mambaforge | |
miniforge-version: latest | |
condarc-file: continuous_integration/condarc | |
use-mamba: true | |
python-version: ${{ env.PYTHON_VERSION }} | |
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@v3 | |
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: ${{ env.PYTHON_VERSION }}-${{ 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/github-pages-deploy-action@v4.4.3 | |
with: | |
branch: gh-pages | |
folder: deploy |