File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed
src/energy_forcasting_model/pipelines/lightgbm_training_pipeline Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 13
13
runs-on : ubuntu-latest
14
14
steps :
15
15
- uses : actions/checkout@v3
16
+ with :
17
+ persist-credentials : false # Important: This must be set for actions-js/push
18
+ fetch-depth : 0 # Important: Fetch all history for all tags and branches
16
19
- name : Set up Python
17
20
uses : actions/setup-python@v4
18
21
with :
25
28
run : ruff --fix .
26
29
- name : Security Check with Bandit
27
30
run : bandit -r .
28
- # Commit and push changes made by Black and Ruff
29
31
- name : Commit & Push changes
30
- uses : actions-js/push@main
32
+ uses : actions-js/push@v1.4
31
33
with :
32
34
github_token : ${{ secrets.MY_GITHUB_TOKEN }}
35
+ branch : ${{ github.ref }}
Original file line number Diff line number Diff line change @@ -51,10 +51,10 @@ def create_pipeline(**kwargs) -> Pipeline:
51
51
tags = "model_training" ,
52
52
namespace = "lightgbm_training_pipeline" ,
53
53
inputs = [
54
- "X_train" ,
55
- "y_train" ,
56
- "X_test" ,
57
- "y_test" ,
54
+ "X_train" ,
55
+ "y_train" ,
56
+ "X_test" ,
57
+ "y_test" ,
58
58
],
59
59
outputs = [
60
60
"lightgbm_model" ,
You can’t perform that action at this time.
0 commit comments