File tree Expand file tree Collapse file tree 12 files changed +108
-176
lines changed
Expand file tree Collapse file tree 12 files changed +108
-176
lines changed Original file line number Diff line number Diff line change 1313
1414jobs :
1515 daily_github_collection :
16+ environment : daily
1617 runs-on : ubuntu-latest
1718 steps :
1819 - uses : actions/checkout@v4
@@ -21,16 +22,18 @@ jobs:
2122 with :
2223 enable-cache : true
2324 activate-environment : true
24- - name : Install pip and dependencies
25+ - name : Install dependencies
2526 run : |
26- uv pip install -U pip
2727 uv pip install .
2828 - name : Collect GitHub Data
2929 run : |
30- uv run gitmetrics collect -v -q -t ${{ secrets.GITHUB_TOKEN }} -m -c daily.yaml
30+ uv run gitmetrics collect -q \
31+ --add-metrics \
32+ --config-file daily.yaml \
33+ --token ${{ secrets.GITHUB_TOKEN }} \
34+ --output-folder ${{ secrets.OUTPUT_FOLDER }}
3135 env :
3236 PYDRIVE_CREDENTIALS : ${{ secrets.PYDRIVE_CREDENTIALS }}
33-
3437 alert :
3538 needs : [daily_github_collection]
3639 runs-on : ubuntu-latest
4245 with :
4346 enable-cache : true
4447 activate-environment : true
45- - name : Install pip and dependencies
48+ - name : Install dependencies
4649 run : |
47- uv pip install -U pip
4850 uv pip install .[dev]
4951 - name : Slack alert if failure
5052 run : python -m gitmetrics.slack_utils -r ${{ github.run_id }} -c ${{ github.event.inputs.slack_channel || 'sdv-alerts' }}
Original file line number Diff line number Diff line change 1313
1414jobs :
1515 summarize :
16+ environment : daily
1617 runs-on : ubuntu-latest
1718 timeout-minutes : 5
1819 steps :
@@ -22,14 +23,13 @@ jobs:
2223 with :
2324 enable-cache : true
2425 activate-environment : true
25- - name : Install pip and dependencies
26+ - name : Install dependencies
2627 run : |
27- uv pip install -U pip
2828 uv pip install .
2929 - name : Run Summarize
3030 run : |
3131 uv run gitmetrics summarize \
32- --input-folder ***REMOVED***
32+ --input-folder ${{ secrets.OUTPUT_FOLDER }}
3333 env :
3434 PYDRIVE_CREDENTIALS : ${{ secrets.PYDRIVE_CREDENTIALS }}
3535 - uses : actions/checkout@v4
6060 with :
6161 enable-cache : true
6262 activate-environment : true
63- - name : Install pip and dependencies
63+ - name : Install dependencies
6464 run : |
65- uv pip install -U pip
6665 uv pip install .[dev]
6766 - name : Slack alert if failure
6867 run : |
Original file line number Diff line number Diff line change 1818 with :
1919 enable-cache : true
2020 activate-environment : true
21- - name : Install pip and dependencies
21+ - name : Install dependencies
2222 run : |
23- uv pip install -U pip
2423 uv pip install .[dev]
2524 - name : Run lint checks
2625 run : uv run invoke lint
Original file line number Diff line number Diff line change 1313
1414jobs :
1515 daily_traffic_collection :
16+ environment : traffic
1617 runs-on : ubuntu-latest
1718 steps :
1819 - uses : actions/checkout@v4
@@ -21,13 +22,15 @@ jobs:
2122 with :
2223 enable-cache : true
2324 activate-environment : true
24- - name : Install pip and dependencies
25+ - name : Install dependencies
2526 run : |
26- uv pip install -U pip
2727 uv pip install .
2828 - name : Collect GitHub Traffic Data
2929 run : |
30- uv run gitmetrics traffic -v -t ${{ secrets.GH_TRAFFIC_TOKEN }} -c traffic_config.yaml
30+ uv run gitmetrics traffic \
31+ --config-file traffic_config.yaml \
32+ --token ${{ secrets.GH_TRAFFIC_TOKEN }} \
33+ --output-folder ${{ secrets.OUTPUT_FOLDER }}
3134 env :
3235 PYDRIVE_CREDENTIALS : ${{ secrets.PYDRIVE_CREDENTIALS }}
3336 alert :
4144 with :
4245 enable-cache : true
4346 activate-environment : true
44- - name : Install pip and dependencies
47+ - name : Install dependencies
4548 run : |
46- uv pip install -U pip
4749 uv pip install .[dev]
4850 - name : Slack alert if failure
4951 run : python -m gitmetrics.slack_utils -r ${{ github.run_id }} -c ${{ github.event.inputs.slack_channel || 'sdv-alerts' }}
Original file line number Diff line number Diff line change 1313
1414jobs :
1515 weekly_github_collection :
16+ environment : weekly
1617 runs-on : ubuntu-latest
1718 steps :
1819 - uses : actions/checkout@v4
@@ -21,18 +22,23 @@ jobs:
2122 with :
2223 enable-cache : true
2324 activate-environment : true
24- - name : Install pip and dependencies
25+ - name : Install dependencies
2526 run : |
26- uv pip install -U pip
2727 uv pip install .
2828 - name : Collect GitHub Data
2929 run : |
30- uv run gitmetrics collect -v -q -t ${{ secrets.GITHUB_TOKEN }} -m -c weekly.yaml
30+ uv run gitmetrics collect -q \
31+ --add-metrics \
32+ --config-file weekly.yaml \
33+ --token ${{ secrets.GITHUB_TOKEN }} \
34+ --output-folder ${{ secrets.OUTPUT_FOLDER }}
3135 env :
3236 PYDRIVE_CREDENTIALS : ${{ secrets.PYDRIVE_CREDENTIALS }}
3337 - name : Consolidate GitHub Data
3438 run : |
35- uv run gitmetrics consolidate -v -c weekly.yaml
39+ uv run gitmetrics consolidate \
40+ --config-file weekly.yaml \
41+ --output-folder ${{ secrets.OUTPUT_FOLDER }}
3642 env :
3743 PYDRIVE_CREDENTIALS : ${{ secrets.PYDRIVE_CREDENTIALS }}
3844 alert :
4652 with :
4753 enable-cache : true
4854 activate-environment : true
49- - name : Install pip and dependencies
55+ - name : Install dependencies
5056 run : |
51- uv pip install -U pip
5257 uv pip install .[dev]
5358 - name : Slack alert if failure
5459 run : python -m gitmetrics.slack_utils -r ${{ github.run_id }} -c ${{ github.event.inputs.slack_channel || 'sdv-alerts' }}
You can’t perform that action at this time.
0 commit comments