|
|
|
@ -26,7 +26,7 @@ jobs: |
|
|
|
outputs: |
|
|
|
src: ${{ steps.filter.outputs.src }} |
|
|
|
steps: |
|
|
|
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 |
|
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
|
|
|
with: |
|
|
|
persist-credentials: false |
|
|
|
# For pull requests it's not necessary to checkout the code but for the main branch it is |
|
|
|
@ -107,15 +107,15 @@ jobs: |
|
|
|
env: |
|
|
|
GITHUB_CONTEXT: ${{ toJson(github) }} |
|
|
|
run: echo "$GITHUB_CONTEXT" |
|
|
|
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 |
|
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
|
|
|
with: |
|
|
|
persist-credentials: false |
|
|
|
- name: Set up Python |
|
|
|
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 |
|
|
|
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 |
|
|
|
with: |
|
|
|
python-version: ${{ matrix.python-version }} |
|
|
|
- name: Setup uv |
|
|
|
uses: astral-sh/setup-uv@d31148d669074a8d0a63714ba94f3201e7020bc3 # v8.3.0 |
|
|
|
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0 |
|
|
|
with: |
|
|
|
# Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum. |
|
|
|
# See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837 |
|
|
|
@ -171,15 +171,15 @@ jobs: |
|
|
|
env: |
|
|
|
GITHUB_CONTEXT: ${{ toJson(github) }} |
|
|
|
run: echo "$GITHUB_CONTEXT" |
|
|
|
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 |
|
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
|
|
|
with: |
|
|
|
persist-credentials: false |
|
|
|
- name: Set up Python |
|
|
|
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 |
|
|
|
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 |
|
|
|
with: |
|
|
|
python-version: "3.13" |
|
|
|
- name: Setup uv |
|
|
|
uses: astral-sh/setup-uv@d31148d669074a8d0a63714ba94f3201e7020bc3 # v8.3.0 |
|
|
|
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0 |
|
|
|
with: |
|
|
|
# Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum. |
|
|
|
# See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837 |
|
|
|
@ -191,12 +191,12 @@ jobs: |
|
|
|
- name: Install Dependencies |
|
|
|
run: uv sync --no-dev --group tests --extra all |
|
|
|
- name: CodSpeed benchmarks |
|
|
|
uses: CodSpeedHQ/action@a4a36bb07c0638b0b4ca52bf1f3dad1b4289e52f # v4.18.1 |
|
|
|
uses: CodSpeedHQ/action@f99becdce5e5d51fd556489ebef684f4ecfd6286 # v4.18.5 |
|
|
|
with: |
|
|
|
mode: simulation |
|
|
|
run: uv run --no-sync pytest tests/benchmarks --codspeed |
|
|
|
- name: CodSpeed memory benchmark |
|
|
|
uses: CodSpeedHQ/action@a4a36bb07c0638b0b4ca52bf1f3dad1b4289e52f # v4.18.1 |
|
|
|
uses: CodSpeedHQ/action@f99becdce5e5d51fd556489ebef684f4ecfd6286 # v4.18.5 |
|
|
|
with: |
|
|
|
mode: memory |
|
|
|
run: uv run --no-sync pytest tests/memory_benchmarks --codspeed |
|
|
|
@ -207,7 +207,7 @@ jobs: |
|
|
|
steps: |
|
|
|
- name: Check out the pull request |
|
|
|
if: github.event_name == 'pull_request' |
|
|
|
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 |
|
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
|
|
|
with: |
|
|
|
ref: ${{ github.sha }} |
|
|
|
path: pr |
|
|
|
@ -237,19 +237,19 @@ jobs: |
|
|
|
fi |
|
|
|
- name: Check out the base revision |
|
|
|
if: steps.changed-tests.outputs.found == 'true' |
|
|
|
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 |
|
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
|
|
|
with: |
|
|
|
ref: ${{ github.event.pull_request.base.sha }} |
|
|
|
path: base |
|
|
|
persist-credentials: false |
|
|
|
- name: Set up Python |
|
|
|
if: steps.changed-tests.outputs.found == 'true' |
|
|
|
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 |
|
|
|
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 |
|
|
|
with: |
|
|
|
python-version-file: "base/.python-version" |
|
|
|
- name: Setup uv |
|
|
|
if: steps.changed-tests.outputs.found == 'true' |
|
|
|
uses: astral-sh/setup-uv@d31148d669074a8d0a63714ba94f3201e7020bc3 # v8.3.0 |
|
|
|
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0 |
|
|
|
with: |
|
|
|
# Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum. |
|
|
|
# See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837 |
|
|
|
@ -283,14 +283,14 @@ jobs: |
|
|
|
env: |
|
|
|
GITHUB_CONTEXT: ${{ toJson(github) }} |
|
|
|
run: echo "$GITHUB_CONTEXT" |
|
|
|
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 |
|
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
|
|
|
with: |
|
|
|
persist-credentials: false |
|
|
|
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0 |
|
|
|
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 |
|
|
|
with: |
|
|
|
python-version-file: ".python-version" |
|
|
|
- name: Setup uv |
|
|
|
uses: astral-sh/setup-uv@d31148d669074a8d0a63714ba94f3201e7020bc3 # v8.3.0 |
|
|
|
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0 |
|
|
|
with: |
|
|
|
# Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum. |
|
|
|
# See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837 |
|
|
|
|