Skip to content

Commit ae3c66e

Browse files
committed
Updated the workflow
1 parent 4077ae0 commit ae3c66e

File tree

3 files changed

+17
-48
lines changed

3 files changed

+17
-48
lines changed

.github/workflows/test_code.yml

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test Code with Docker
1+
name: Test Code Without Docker
22

33
on:
44
push:
@@ -11,21 +11,13 @@ on:
1111
jobs:
1212
test-code:
1313
runs-on: ubuntu-latest
14-
services:
15-
docker:
16-
image: docker:19.03.12
17-
options: --privileged
1814
steps:
1915
- uses: actions/checkout@v3
2016
- name: Set up Python
2117
uses: actions/setup-python@v4
2218
with:
2319
python-version: '3.8'
24-
- name: Install Kedro and Docker plugin
25-
run: pip install -r dev-requirements.txt
26-
- name: Configure Docker
27-
run: sudo service docker start
28-
- name: Build docker image (using Kedro-Docker)
29-
run: kedro docker build
30-
- name: Run the docker container (using Kedro-Docker)
31-
run: kedro docker run
20+
- name: Install Kedro project dependencies
21+
run: pip install -r docker-requirements.txt
22+
- name: Run Kedro Pipeline
23+
run: kedro run

.github/workflows/test_code_docker.yml

Lines changed: 0 additions & 23 deletions
This file was deleted.

src/energy_forcasting_model/pipelines/feature_engineering_pipeline/pipeline.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@ def create_pipeline(**kwargs) -> Pipeline:
77
return pipeline(
88
[
99
node(
10-
func=create_features,
11-
inputs=[
12-
"processed_weather_and_consumption_data",
13-
"params:feature_engineering",
14-
],
15-
outputs=[
16-
"featured_data",
17-
"created_features",
18-
],
19-
name="create_features_node",
20-
tags=["feature_creation"],
21-
),
10+
func=create_features,
11+
inputs=[
12+
"processed_weather_and_consumption_data",
13+
"params:feature_engineering",
14+
],
15+
outputs=[
16+
"featured_data",
17+
"created_features",
18+
],
19+
name="create_features_node",
20+
tags=["feature_creation"],
21+
),
2222
],
2323
tags="feature_engineering_pipeline",
2424
namespace="feature_engineering_pipeline",

0 commit comments

Comments
 (0)