-
-
Notifications
You must be signed in to change notification settings - Fork 2
59 lines (45 loc) · 1.4 KB
/
test-and-lint.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
name: Tests and lint
on:
push:
pull_request:
types: [opened, reopened]
jobs:
test_and_lint_forecast_inference:
name: Run tests and lint - forecast-inference
runs-on: ubuntu-latest
steps:
- name: Install linux dependencies
run: sudo apt-get install -y libgeos-dev
- name: Check out the repo
uses: actions/checkout@v2
- name: Install poetry
run: pipx install poetry==1.3.2
- name: Install python
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: poetry
- name: Install and configure poetry
run: cd forecast-inference && poetry install
- name: Run tests
run: cd forecast-inference && make test
- name: Run lint
run: cd forecast-inference && make lint
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
test_and_lint_database_cleanup:
name: Run tests and lint - database-cleanup
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Install and configure poetry
uses: snok/install-poetry@v1
with:
version: 1.3.2
- name: Run tests
run: cd database-cleanup && make test
- name: Run lint
run: cd database-cleanup && make lint
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3