-
Notifications
You must be signed in to change notification settings - Fork 8
38 lines (37 loc) · 1002 Bytes
/
ci_pipeline.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
name: CIPipeline
on:
push:
branches:
- "*"
- "!main"
jobs:
lint-project:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: s-weigand/setup-conda@v1
with:
python-version: 3.7.9
- name: Install pip-tools
run: pip install pip-tools
- name: Install dependencies
run: |
pip-compile src/requirements.in --output-file src/requirements.txt
pip install -r src/requirements.txt
- name: Run linting
run: kedro lint
test-project:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: s-weigand/setup-conda@v1
with:
python-version: 3.7.9
- name: Install pip-tools
run: pip install pip-tools
- name: Install dependencies
run: |
pip-compile src/requirements.in --output-file src/requirements.txt
pip install -r src/requirements.txt
- name: Run test
run: kedro test