-
Notifications
You must be signed in to change notification settings - Fork 15
40 lines (35 loc) · 1.2 KB
/
validations.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
name: Validations
on:
pull_request_target:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.2]
steps:
- name: Checkout Forecast Hub Repo
uses: actions/checkout@v2
- name: Checkout Validation Repo
uses: actions/checkout@v2
with:
repository: 'reichlab/covid19-forecast-hub-validations'
ref: 'main'
path: 'covid19-forecast-hub-validations'
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.9' # 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
- name: Setup pipenv
run: pip3 install pipenv==2022.8.5
working-directory: ./covid19-forecast-hub-validations
- name: Install python dependencies
run: pipenv install --skip-lock
working-directory: ./covid19-forecast-hub-validations
- name: Validations output
working-directory: ./covid19-forecast-hub-validations
run: pipenv run python main.py --project_dir ${{ github.workspace }}
env:
GH_TOKEN: ${{ github.token }}