-
Notifications
You must be signed in to change notification settings - Fork 327
37 lines (35 loc) · 1.15 KB
/
upload_single_forecast.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
name: Single forecast zoltar upload
on:
workflow_dispatch:
inputs:
name:
description: 'Forecast name'
required: true
jobs:
upload_zoltar:
if: github.repository_owner == 'reichlab'
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.2]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
- run: npm install
- run: pip3 install -r visualization/requirements.txt
- run: python3 code/zoltar_scripts/upload_single_forecast.py ${{ github.event.inputs.name }}
env:
Z_USERNAME: ${{ secrets.Z_USERNAME}}
Z_PASSWORD: ${{ secrets.Z_PASSWORD}}
GH_TOKEN: ${{secrets.GH_TOKEN}}
- run: bash travis/push-gh.sh
env:
GH_TOKEN: ${{secrets.GH_TOKEN}}