Add CI cache pruning (#17664)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> Co-authored-by: Ultralytics Assistant <135830346+UltralyticsAssistant@users.noreply.github.com> Co-authored-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
parent
bf63170117
commit
118edde3ba
3 changed files with 7 additions and 1 deletions
4
.github/workflows/ci.yaml
vendored
4
.github/workflows/ci.yaml
vendored
|
|
@ -146,6 +146,8 @@ jobs:
|
||||||
flags: Benchmarks
|
flags: Benchmarks
|
||||||
env:
|
env:
|
||||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
- name: Prune uv Cache
|
||||||
|
run: uv cache prune --ci
|
||||||
- name: Benchmark Summary
|
- name: Benchmark Summary
|
||||||
run: |
|
run: |
|
||||||
cat benchmarks.log
|
cat benchmarks.log
|
||||||
|
|
@ -203,6 +205,8 @@ jobs:
|
||||||
flags: Tests
|
flags: Tests
|
||||||
env:
|
env:
|
||||||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
|
||||||
|
- name: Prune uv Cache
|
||||||
|
run: uv cache prune --ci
|
||||||
|
|
||||||
GPU:
|
GPU:
|
||||||
if: github.repository == 'ultralytics/ultralytics' && (github.event_name != 'workflow_dispatch' || github.event.inputs.gpu == 'true')
|
if: github.repository == 'ultralytics/ultralytics' && (github.event_name != 'workflow_dispatch' || github.event.inputs.gpu == 'true')
|
||||||
|
|
|
||||||
2
.github/workflows/format.yml
vendored
2
.github/workflows/format.yml
vendored
|
|
@ -20,7 +20,7 @@ jobs:
|
||||||
- name: Run Ultralytics Formatting
|
- name: Run Ultralytics Formatting
|
||||||
uses: ultralytics/actions@main
|
uses: ultralytics/actions@main
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets._GITHUB_TOKEN }} # note GITHUB_TOKEN automatically generated
|
token: ${{ secrets._GITHUB_TOKEN || secrets.GITHUB_TOKEN}}
|
||||||
labels: true # autolabel issues and PRs
|
labels: true # autolabel issues and PRs
|
||||||
python: true # format Python code and docstrings
|
python: true # format Python code and docstrings
|
||||||
prettier: true # format YAML, JSON, Markdown and CSS
|
prettier: true # format YAML, JSON, Markdown and CSS
|
||||||
|
|
|
||||||
2
.github/workflows/publish.yml
vendored
2
.github/workflows/publish.yml
vendored
|
|
@ -82,6 +82,8 @@ jobs:
|
||||||
PR_TITLE=$(echo "${PR_JSON}" | jq -r '.title')
|
PR_TITLE=$(echo "${PR_JSON}" | jq -r '.title')
|
||||||
echo "PR_NUMBER=${PR_NUMBER}" >> "${GITHUB_ENV}"
|
echo "PR_NUMBER=${PR_NUMBER}" >> "${GITHUB_ENV}"
|
||||||
echo "PR_TITLE=${PR_TITLE}" >> "${GITHUB_ENV}"
|
echo "PR_TITLE=${PR_TITLE}" >> "${GITHUB_ENV}"
|
||||||
|
- name: Prune uv Cache
|
||||||
|
run: uv cache prune --ci
|
||||||
- name: Notify on Slack (Success)
|
- name: Notify on Slack (Success)
|
||||||
if: success() && github.event_name == 'push' && steps.check_pypi.outputs.increment == 'True'
|
if: success() && github.event_name == 'push' && steps.check_pypi.outputs.increment == 'True'
|
||||||
uses: slackapi/slack-github-action@v2.0.0
|
uses: slackapi/slack-github-action@v2.0.0
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue