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>
109 lines
3.0 KiB
YAML
109 lines
3.0 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"
|
|
- "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@e92bafb6253dcd438e0484186d7669ea7a8ca1cc # v6.4.3
|
|
|
|
- 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@e92bafb6253dcd438e0484186d7669ea7a8ca1cc # v6.4.3
|
|
|
|
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2.7.8
|
|
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
|