File tree Expand file tree Collapse file tree 5 files changed +27
-67
lines changed
Expand file tree Collapse file tree 5 files changed +27
-67
lines changed Original file line number Diff line number Diff 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 : |
Original file line number Diff line number Diff 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 : |
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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 : |
Original file line number Diff line number Diff line change 1- GitPython
21PyGithub
32dbt-core >= 1.4 ,< 1.5
43dbt-duckdb
54duckdb
65piperider [duckdb ]
6+ GitPython
77pandas
You can’t perform that action at this time.
0 commit comments