forked from dask/distributed
-
Notifications
You must be signed in to change notification settings - Fork 0
62 lines (54 loc) · 1.96 KB
/
test-report.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
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@v2
- name: Setup Conda Environment
uses: conda-incubator/setup-miniconda@v2
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 50 --nfails 1 -o test_report.html
python continuous_integration/scripts/test_report.py --max-days 7 --max-runs 50 --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