diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e0eff35cb8..9d7031e98e 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -146,6 +146,8 @@ jobs: flags: Benchmarks env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + - name: Prune uv Cache + run: uv cache prune --ci - name: Benchmark Summary run: | cat benchmarks.log @@ -203,6 +205,8 @@ jobs: flags: Tests env: CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + - name: Prune uv Cache + run: uv cache prune --ci GPU: if: github.repository == 'ultralytics/ultralytics' && (github.event_name != 'workflow_dispatch' || github.event.inputs.gpu == 'true') diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml index f4ac8bdd5a..c98b876265 100644 --- a/.github/workflows/format.yml +++ b/.github/workflows/format.yml @@ -20,7 +20,7 @@ jobs: - name: Run Ultralytics Formatting uses: ultralytics/actions@main with: - token: ${{ secrets._GITHUB_TOKEN }} # note GITHUB_TOKEN automatically generated + token: ${{ secrets._GITHUB_TOKEN || secrets.GITHUB_TOKEN}} labels: true # autolabel issues and PRs python: true # format Python code and docstrings prettier: true # format YAML, JSON, Markdown and CSS diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 59cbed299e..c2711aa441 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -82,6 +82,8 @@ jobs: PR_TITLE=$(echo "${PR_JSON}" | jq -r '.title') echo "PR_NUMBER=${PR_NUMBER}" >> "${GITHUB_ENV}" echo "PR_TITLE=${PR_TITLE}" >> "${GITHUB_ENV}" + - name: Prune uv Cache + run: uv cache prune --ci - name: Notify on Slack (Success) if: success() && github.event_name == 'push' && steps.check_pypi.outputs.increment == 'True' uses: slackapi/slack-github-action@v2.0.0