Skip to content

Commit 27bf07e

Browse files
Update the github action workflows
Co-authored-by: Wei-Chun, Chang <[email protected]> Signed-off-by: popcorny <[email protected]>
1 parent ad15efd commit 27bf07e

File tree

5 files changed

+27
-67
lines changed

5 files changed

+27
-67
lines changed

.github/workflows/generate-sample-reports-release.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,15 @@ jobs:
4141
env:
4242
PIPERIDER_VERSION: ${{ github.event.client_payload.piperider_version || github.event.inputs.piperider_version}}
4343

44-
- name: prepare db for git repo ${{ vars.GIT_REPO_URL }}
44+
- name: Clone git repo and fetch stats from github API
45+
env:
46+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
run: |
48+
make fetch
49+
50+
- name: Load to duckdb
4551
run: |
46-
git clone $GIT_REPO_URL git_repo
47-
python3 read_git_repo.py
52+
make load
4853
4954
- name: override piperider user id
5055
run: |

.github/workflows/generate-sample-reports.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,16 @@ jobs:
3030
- name: install dbt and piperider
3131
run: |
3232
pip install -r requirements.txt
33-
pip install 'piperider[duckdb]'
3433
35-
- name: prepare db for git repo ${{ vars.GIT_REPO_URL }}
34+
- name: Clone git repo and fetch stats from github API
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3637
run: |
37-
git clone $GIT_REPO_URL git_repo
38-
python3 read_git_repo.py
38+
make fetch
39+
40+
- name: Load to duckdb
41+
run: |
42+
make load
3943
4044
- name: override piperider user id
4145
run: |

.github/workflows/manual.yml

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

.github/workflows/run.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v3
13-
with:
14-
ref: main
1513

1614
- name: Set up Python 3.8
1715
uses: actions/setup-python@v4
@@ -21,16 +19,20 @@ jobs:
2119
- name: Set up dbt + PipeRider
2220
run: |
2321
pip install -r requirements.txt
24-
pip install 'piperider-nightly[duckdb]'
2522
26-
- name: Clone git repo ${{ vars.GIT_REPO_URL }}
23+
- name: Clone git repo and fetch stats from github API
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2726
run: |
28-
url=${{ vars.GIT_REPO_URL }}
29-
git clone $url git_repo
27+
make fetch
3028
31-
- name: Read git repo commits
29+
- name: Load to duckdb
3230
run: |
33-
python3 read_git_repo.py
31+
make load
32+
33+
- uses: actions/checkout@v3
34+
with:
35+
ref: main
3436

3537
- name: Run dbt + PipeRider for main branch
3638
run: |

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
GitPython
21
PyGithub
32
dbt-core>=1.4,<1.5
43
dbt-duckdb
54
duckdb
65
piperider[duckdb]
6+
GitPython
77
pandas

0 commit comments

Comments
 (0)