-
Notifications
You must be signed in to change notification settings - Fork 94
42 lines (34 loc) · 1.03 KB
/
zoltar-upload.yml
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
name: Zoltar upload
on:
workflow_dispatch:
schedule:
- cron: "0 7 * * *"
jobs:
build:
if: github.repository_owner == 'covid19-forecast-hub-europe'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive # zoltar upload relies on validations submodule
- name: Python set up
uses: actions/setup-python@v2
with:
python-version: '3.9' # Version range
architecture: 'x64'
- name: Install requirements
run: |
pip3 install git+https://github.com/reichlab/zoltpy/
pip3 install -r validation/requirements.txt
- name: Zoltar upload
run: python3 validation/upload_zoltar.py
env:
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
Z_USERNAME: ${{secrets.Z_USERNAME}}
Z_PASSWORD: ${{secrets.Z_PASSWORD}}
- name: Create issue about failure
if: failure() && github.event_name != 'workflow_dispatch'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh issue reopen 2637