-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (49 loc) · 1.42 KB
/
ci.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: CI
on: [pull_request]
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: pip install -r requirements.txt -r requirements-dev.txt
- name: Run tests
run: pytest tests
- name: Run as CLI
run: |
unset GITHUB_ACTION
pip install -e .
profile -c m5-forecasting-uncertainty -m 1
- name: Run as GitHub Action
id: make_profile
uses: ./
with:
comp_slug: m5-forecasting-accuracy
max_num_kernels: 1
out_dir: output
# Store an output markdown file as an artifact so we can verify it renders properly.
- name: Store output markdown file
uses: actions/upload-artifact@v2
with:
name: ${{ steps.make_profile.outputs.markdown_name }}
path: ${{ steps.make_profile.outputs.markdown_path }}
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install dependencies
run: pip install -r requirements-dev.txt
- name: flake8
run: flake8 .
- name: black
run: black --check .