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.4.3` -> `v6.6.0` | --- > [!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.6.0`](https://redirect.github.com/astral-sh/setup-uv/releases/tag/v6.6.0): 🌈 Support for .tools-versions [Compare Source](https://redirect.github.com/astral-sh/setup-uv/compare/v6.5.0...v6.6.0) ##### Changes This release adds support for [asdf](https://asdf-vm.com/) `.tool-versions` in the `version-file` input ##### 🐛 Bug fixes - Add log message before long API calls to GitHub [@​eifinger](https://redirect.github.com/eifinger) ([#​530](https://redirect.github.com/astral-sh/setup-uv/issues/530)) ##### 🚀 Enhancements - Add support for .tools-versions [@​eifinger](https://redirect.github.com/eifinger) ([#​531](https://redirect.github.com/astral-sh/setup-uv/issues/531)) ##### 🧰 Maintenance - Bump dependencies [@​eifinger](https://redirect.github.com/eifinger) ([#​532](https://redirect.github.com/astral-sh/setup-uv/issues/532)) - chore: update known versions for 0.8.12 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​529](https://redirect.github.com/astral-sh/setup-uv/issues/529)) - chore: update known versions for 0.8.11 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​526](https://redirect.github.com/astral-sh/setup-uv/issues/526)) - chore: update known versions for 0.8.10 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​525](https://redirect.github.com/astral-sh/setup-uv/issues/525)) ### [`v6.5.0`](https://redirect.github.com/astral-sh/setup-uv/releases/tag/v6.5.0): 🌈 Better error messages, bug fixes and copilot agent settings [Compare Source](https://redirect.github.com/astral-sh/setup-uv/compare/v6.4.3...v6.5.0) ##### Changes This release brings better error messages in case the GitHub API is impacted, fixes a few bugs and allows to disable [problem matchers](https://redirect.github.com/actions/toolkit/blob/main/docs/problem-matchers.md) for better use in Copilot Agent workspaces. ##### 🐛 Bug fixes - Improve error messages on GitHub API errors [@​eifinger](https://redirect.github.com/eifinger) ([#​518](https://redirect.github.com/astral-sh/setup-uv/issues/518)) - Ignore backslashes and whitespace in requirements [@​axm2](https://redirect.github.com/axm2) ([#​501](https://redirect.github.com/astral-sh/setup-uv/issues/501)) ##### 🚀 Enhancements - Add input add-problem-matchers [@​eifinger](https://redirect.github.com/eifinger) ([#​517](https://redirect.github.com/astral-sh/setup-uv/issues/517)) ##### 🧰 Maintenance - chore: update known versions for 0.8.9 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​512](https://redirect.github.com/astral-sh/setup-uv/issues/512)) - chore: update known versions for 0.8.6-0.8.8 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​510](https://redirect.github.com/astral-sh/setup-uv/issues/510)) - chore: update known versions for 0.8.5 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​509](https://redirect.github.com/astral-sh/setup-uv/issues/509)) - chore: update known versions for 0.8.4 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​505](https://redirect.github.com/astral-sh/setup-uv/issues/505)) - chore: update known versions for 0.8.3 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​502](https://redirect.github.com/astral-sh/setup-uv/issues/502)) ##### 📚 Documentation - add note on caching to read disable-cache-pruning [@​eifinger](https://redirect.github.com/eifinger) ([#​506](https://redirect.github.com/astral-sh/setup-uv/issues/506)) ##### ⬆️ Dependency updates - Bump actions/checkout from 4 to 5 @​[dependabot\[bot\]](https://redirect.github.com/apps/dependabot) ([#​514](https://redirect.github.com/astral-sh/setup-uv/issues/514)) - bump dependencies [@​eifinger](https://redirect.github.com/eifinger) ([#​516](https://redirect.github.com/astral-sh/setup-uv/issues/516)) - Bump biome to v2 [@​eifinger](https://redirect.github.com/eifinger) ([#​515](https://redirect.github.com/astral-sh/setup-uv/issues/515)) </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:eyJjcmVhdGVkSW5WZXIiOiI0MS44Mi43IiwidXBkYXRlZEluVmVyIjoiNDEuODIuNyIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiaW50ZXJuYWwiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
110 lines
3.1 KiB
YAML
110 lines
3.1 KiB
YAML
name: Run mypy_primer
|
|
|
|
permissions: {}
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- "crates/ty*/**"
|
|
- "crates/ruff_db"
|
|
- "crates/ruff_python_ast"
|
|
- "crates/ruff_python_parser"
|
|
- ".github/workflows/mypy_primer.yaml"
|
|
- ".github/workflows/mypy_primer_comment.yaml"
|
|
- "scripts/mypy_primer.sh"
|
|
- "Cargo.lock"
|
|
- "!**.md"
|
|
|
|
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
|
|
|
|
jobs:
|
|
mypy_primer:
|
|
name: Run mypy_primer
|
|
runs-on: depot-ubuntu-22.04-32
|
|
timeout-minutes: 20
|
|
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@4959332f0f014c5280e7eac8b70c90cb574c9f9b # v6.6.0
|
|
|
|
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
|
|
with:
|
|
workspaces: "ruff"
|
|
|
|
- name: Install Rust toolchain
|
|
run: rustup show
|
|
|
|
- name: Run mypy_primer
|
|
shell: bash
|
|
env:
|
|
PRIMER_SELECTOR: crates/ty_python_semantic/resources/primer/good.txt
|
|
DIFF_FILE: mypy_primer.diff
|
|
run: |
|
|
cd ruff
|
|
scripts/mypy_primer.sh
|
|
echo ${{ github.event.number }} > ../pr-number
|
|
|
|
- name: Upload diff
|
|
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
with:
|
|
name: mypy_primer_diff
|
|
path: mypy_primer.diff
|
|
|
|
- name: Upload pr-number
|
|
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
with:
|
|
name: pr-number
|
|
path: pr-number
|
|
|
|
memory_usage:
|
|
name: Run memory statistics
|
|
runs-on: depot-ubuntu-22.04-32
|
|
timeout-minutes: 20
|
|
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@4959332f0f014c5280e7eac8b70c90cb574c9f9b # v6.6.0
|
|
|
|
- uses: Swatinem/rust-cache@98c8021b550208e191a6a3145459bfc9fb29c4c0 # v2.8.0
|
|
with:
|
|
workspaces: "ruff"
|
|
|
|
- name: Install Rust toolchain
|
|
run: rustup show
|
|
|
|
- name: Run mypy_primer
|
|
shell: bash
|
|
env:
|
|
TY_MAX_PARALLELISM: 1 # for deterministic memory numbers
|
|
TY_MEMORY_REPORT: mypy_primer
|
|
PRIMER_SELECTOR: crates/ty_python_semantic/resources/primer/memory.txt
|
|
DIFF_FILE: mypy_primer_memory.diff
|
|
run: |
|
|
cd ruff
|
|
scripts/mypy_primer.sh
|
|
|
|
- name: Upload diff
|
|
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
with:
|
|
name: mypy_primer_memory_diff
|
|
path: mypy_primer_memory.diff
|