This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [astral-sh/setup-uv](https://redirect.github.com/astral-sh/setup-uv) | action | minor | `v6.3.1` -> `v6.4.3` | --- > [!WARNING] > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>astral-sh/setup-uv (astral-sh/setup-uv)</summary> ### [`v6.4.3`](https://redirect.github.com/astral-sh/setup-uv/releases/tag/v6.4.3): 🌈 fix relative paths starting with dots [Compare Source](https://redirect.github.com/astral-sh/setup-uv/compare/v6.4.2...v6.4.3) #### 🐛 Bug fixes - fix relative paths starting with dots [@​eifinger](https://redirect.github.com/eifinger) ([#​500](https://redirect.github.com/astral-sh/setup-uv/issues/500)) ### [`v6.4.2`](https://redirect.github.com/astral-sh/setup-uv/releases/tag/v6.4.2): 🌈 Interpret relative inputs as under working-directory [Compare Source](https://redirect.github.com/astral-sh/setup-uv/compare/v6.4.1...v6.4.2) #### Changes This release will interpret relative paths in inputs as relative to the value of `working-directory` (default is `${{ github.workspace }}`) . This means the following configuration ```yaml - uses: astral-sh/setup-uv@v6 with: working-directory: /my/path cache-dependency-glob: uv.lock ``` will look for the `cache-dependency-glob` under `/my/path/uv.lock` #### 🐛 Bug fixes - interpret relative inputs as under working-directory [@​eifinger](https://redirect.github.com/eifinger) ([#​498](https://redirect.github.com/astral-sh/setup-uv/issues/498)) #### 🧰 Maintenance - chore: update known versions for 0.8.1/0.8.2 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​497](https://redirect.github.com/astral-sh/setup-uv/issues/497)) - chore: update known versions for 0.8.0 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​491](https://redirect.github.com/astral-sh/setup-uv/issues/491)) ### [`v6.4.1`](https://redirect.github.com/astral-sh/setup-uv/releases/tag/v6.4.1): 🌈 Hotfix: Ignore deps starting with uv when finding uv version [Compare Source](https://redirect.github.com/astral-sh/setup-uv/compare/v6.4.0...v6.4.1) ##### Changes Thank you [@​phpmypython](https://redirect.github.com/phpmypython) for raising a PR to fix this issue! ##### 🐛 Bug fixes - Ignore deps starting with uv when finding uv version [@​eifinger](https://redirect.github.com/eifinger) ([#​492](https://redirect.github.com/astral-sh/setup-uv/issues/492)) ### [`v6.4.0`](https://redirect.github.com/astral-sh/setup-uv/releases/tag/v6.4.0): 🌈 Add input `version-file` [Compare Source](https://redirect.github.com/astral-sh/setup-uv/compare/v6.3.1...v6.4.0) ##### Changes You can now use the `version-file` input to specify a file that contains the version of uv to install. This can either be a `pyproject.toml` or `uv.toml` file which defines a `required-version` or uv defined as a dependency in `pyproject.toml` or `requirements.txt`. ```yaml - name: Install uv based on the version defined in requirements.txt uses: astral-sh/setup-uv@v6 with: version-file: "requirements.txt" ``` ##### 🚀 Enhancements - Add input version-file [@​eifinger](https://redirect.github.com/eifinger) ([#​486](https://redirect.github.com/astral-sh/setup-uv/issues/486)) ##### 🧰 Maintenance - chore: update known versions for 0.7.22 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​488](https://redirect.github.com/astral-sh/setup-uv/issues/488)) - Bump dependencies [@​eifinger](https://redirect.github.com/eifinger) ([#​487](https://redirect.github.com/astral-sh/setup-uv/issues/487)) - chore: update known versions for 0.7.21 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​483](https://redirect.github.com/astral-sh/setup-uv/issues/483)) - chore: update known versions for 0.7.20 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​480](https://redirect.github.com/astral-sh/setup-uv/issues/480)) - chore: update known versions for 0.7.19 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​475](https://redirect.github.com/astral-sh/setup-uv/issues/475)) - chore: update known versions for 0.7.18 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​473](https://redirect.github.com/astral-sh/setup-uv/issues/473)) - chore: update known versions for 0.7.17 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​468](https://redirect.github.com/astral-sh/setup-uv/issues/468)) - chore: update known versions for 0.7.16 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​466](https://redirect.github.com/astral-sh/setup-uv/issues/466)) - chore: update known versions for 0.7.15 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​463](https://redirect.github.com/astral-sh/setup-uv/issues/463)) ##### 📚 Documentation - Add FAQ on changed cache and cache upload behavior [@​eifinger](https://redirect.github.com/eifinger) ([#​477](https://redirect.github.com/astral-sh/setup-uv/issues/477)) ##### ⬆️ Dependency updates - Bump dependencies [@​eifinger](https://redirect.github.com/eifinger) ([#​487](https://redirect.github.com/astral-sh/setup-uv/issues/487)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/astral-sh/ruff). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS40MC4wIiwidXBkYXRlZEluVmVyIjoiNDEuNDAuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiaW50ZXJuYWwiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
139 lines
4.5 KiB
YAML
139 lines
4.5 KiB
YAML
name: ty ecosystem-analyzer
|
|
|
|
permissions: {}
|
|
|
|
on:
|
|
pull_request:
|
|
types: [labeled]
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.pull_request.number || github.sha }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
CARGO_INCREMENTAL: 0
|
|
CARGO_NET_RETRY: 10
|
|
CARGO_TERM_COLOR: always
|
|
RUSTUP_MAX_RETRIES: 10
|
|
RUST_BACKTRACE: 1
|
|
REF_NAME: ${{ github.ref_name }}
|
|
CF_API_TOKEN_EXISTS: ${{ secrets.CF_API_TOKEN != '' }}
|
|
|
|
jobs:
|
|
ty-ecosystem-analyzer:
|
|
name: Compute diagnostic diff
|
|
runs-on: depot-ubuntu-22.04-32
|
|
timeout-minutes: 20
|
|
if: contains(github.event.label.name, 'ecosystem-analyzer')
|
|
steps:
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
with:
|
|
path: ruff
|
|
fetch-depth: 0
|
|
persist-credentials: false
|
|
|
|
- name: Install the latest version of uv
|
|
uses: astral-sh/setup-uv@e92bafb6253dcd438e0484186d7669ea7a8ca1cc # v6.4.3
|
|
|
|
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
|
|
with:
|
|
workspaces: "ruff"
|
|
|
|
- name: Install Rust toolchain
|
|
run: rustup show
|
|
|
|
- name: Compute diagnostic diff
|
|
shell: bash
|
|
run: |
|
|
cd ruff
|
|
|
|
echo "Enabling configuration overloads (see .github/mypy-primer-ty.toml)"
|
|
mkdir -p ~/.config/ty
|
|
cp .github/mypy-primer-ty.toml ~/.config/ty/ty.toml
|
|
|
|
echo "new commit"
|
|
git checkout -b new_commit "$GITHUB_SHA"
|
|
git rev-list --format=%s --max-count=1 new_commit
|
|
cp crates/ty_python_semantic/resources/primer/good.txt projects_new.txt
|
|
|
|
echo "old commit (merge base)"
|
|
MERGE_BASE="$(git merge-base "$GITHUB_SHA" "origin/$GITHUB_BASE_REF")"
|
|
git checkout -b old_commit "$MERGE_BASE"
|
|
git rev-list --format=%s --max-count=1 old_commit
|
|
cp crates/ty_python_semantic/resources/primer/good.txt projects_old.txt
|
|
|
|
cd ..
|
|
|
|
uv tool install "git+https://github.com/astral-sh/ecosystem-analyzer@27dd66d9e397d986ef9c631119ee09556eab8af9"
|
|
|
|
ecosystem-analyzer \
|
|
--repository ruff \
|
|
diff \
|
|
--projects-old ruff/projects_old.txt \
|
|
--projects-new ruff/projects_new.txt \
|
|
--old old_commit \
|
|
--new new_commit \
|
|
--output-old diagnostics-old.json \
|
|
--output-new diagnostics-new.json
|
|
|
|
mkdir dist
|
|
|
|
ecosystem-analyzer \
|
|
generate-diff \
|
|
diagnostics-old.json \
|
|
diagnostics-new.json \
|
|
--old-name "main (merge base)" \
|
|
--new-name "$REF_NAME" \
|
|
--output-html dist/diff.html
|
|
|
|
ecosystem-analyzer \
|
|
generate-diff-statistics \
|
|
diagnostics-old.json \
|
|
diagnostics-new.json \
|
|
--old-name "main (merge base)" \
|
|
--new-name "$REF_NAME" \
|
|
--output diff-statistics.md
|
|
|
|
echo '## `ecosystem-analyzer` results' > comment.md
|
|
echo >> comment.md
|
|
cat diff-statistics.md >> comment.md
|
|
|
|
cat diff-statistics.md >> "$GITHUB_STEP_SUMMARY"
|
|
|
|
echo ${{ github.event.number }} > pr-number
|
|
|
|
- name: "Deploy to Cloudflare Pages"
|
|
if: ${{ env.CF_API_TOKEN_EXISTS == 'true' }}
|
|
id: deploy
|
|
uses: cloudflare/wrangler-action@da0e0dfe58b7a431659754fdf3f186c529afbe65 # v3.14.1
|
|
with:
|
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
|
accountId: ${{ secrets.CF_ACCOUNT_ID }}
|
|
command: pages deploy dist --project-name=ty-ecosystem --branch ${{ github.head_ref }} --commit-hash ${GITHUB_SHA}
|
|
|
|
- name: "Append deployment URL"
|
|
if: ${{ env.CF_API_TOKEN_EXISTS == 'true' }}
|
|
env:
|
|
DEPLOYMENT_URL: ${{ steps.deploy.outputs.pages-deployment-alias-url }}
|
|
run: |
|
|
echo >> comment.md
|
|
echo "**[Full report with detailed diff]($DEPLOYMENT_URL/diff)**" >> comment.md
|
|
|
|
- name: Upload comment
|
|
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
with:
|
|
name: comment.md
|
|
path: comment.md
|
|
|
|
- name: Upload pr-number
|
|
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
with:
|
|
name: pr-number
|
|
path: pr-number
|
|
|
|
- name: Upload diagnostics diff
|
|
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
with:
|
|
name: diff.html
|
|
path: dist/diff.html
|