feat: Fix Python versions used in CI (#6725)
fix: Fix Python versions used in CI
This commit is contained in:
parent
af2d77d886
commit
a4355caabe
8 changed files with 21 additions and 52 deletions
6
.github/workflows/codeflash.yml
vendored
6
.github/workflows/codeflash.yml
vendored
|
|
@ -22,10 +22,8 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: astral-sh/setup-uv@v5
|
- name: "Setup Environment"
|
||||||
with:
|
uses: ./.github/actions/setup-uv
|
||||||
enable-cache: true
|
|
||||||
python-version: "3.12"
|
|
||||||
- run: uv sync --extra dev
|
- run: uv sync --extra dev
|
||||||
- name: Run Codeflash Optimizer
|
- name: Run Codeflash Optimizer
|
||||||
working-directory: ./src/backend/base
|
working-directory: ./src/backend/base
|
||||||
|
|
|
||||||
4
.github/workflows/codspeed.yml
vendored
4
.github/workflows/codspeed.yml
vendored
|
|
@ -25,12 +25,14 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version:
|
python-version:
|
||||||
- "3.13"
|
- "3.12"
|
||||||
steps:
|
steps:
|
||||||
- name: Check out the code at a specific ref
|
- name: Check out the code at a specific ref
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: "Setup Environment"
|
- name: "Setup Environment"
|
||||||
uses: ./.github/actions/setup-uv
|
uses: ./.github/actions/setup-uv
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Run benchmarks
|
- name: Run benchmarks
|
||||||
uses: CodSpeedHQ/action@v3
|
uses: CodSpeedHQ/action@v3
|
||||||
with:
|
with:
|
||||||
|
|
|
||||||
2
.github/workflows/docker-build.yml
vendored
2
.github/workflows/docker-build.yml
vendored
|
|
@ -314,6 +314,8 @@ jobs:
|
||||||
ref: ${{ inputs.ref || inputs.main_version || github.ref }}
|
ref: ${{ inputs.ref || inputs.main_version || github.ref }}
|
||||||
- name: "Setup Environment"
|
- name: "Setup Environment"
|
||||||
uses: ./.github/actions/setup-uv
|
uses: ./.github/actions/setup-uv
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
- name: Restart HuggingFace Spaces Build
|
- name: Restart HuggingFace Spaces Build
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
2
.github/workflows/integration_tests.yml
vendored
2
.github/workflows/integration_tests.yml
vendored
|
|
@ -44,6 +44,8 @@ jobs:
|
||||||
ref: ${{ inputs.ref || github.ref }}
|
ref: ${{ inputs.ref || github.ref }}
|
||||||
- name: "Setup Environment"
|
- name: "Setup Environment"
|
||||||
uses: ./.github/actions/setup-uv
|
uses: ./.github/actions/setup-uv
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Run integration tests with api keys
|
- name: Run integration tests with api keys
|
||||||
timeout-minutes: 20
|
timeout-minutes: 20
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
2
.github/workflows/lint-py.yml
vendored
2
.github/workflows/lint-py.yml
vendored
|
|
@ -30,6 +30,8 @@ jobs:
|
||||||
persist-credentials: true
|
persist-credentials: true
|
||||||
- name: "Setup Environment"
|
- name: "Setup Environment"
|
||||||
uses: ./.github/actions/setup-uv
|
uses: ./.github/actions/setup-uv
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Install the project
|
- name: Install the project
|
||||||
run: uv sync --dev
|
run: uv sync --dev
|
||||||
- name: Run Mypy
|
- name: Run Mypy
|
||||||
|
|
|
||||||
36
.github/workflows/python_test.yml
vendored
36
.github/workflows/python_test.yml
vendored
|
|
@ -49,23 +49,10 @@ jobs:
|
||||||
id: setup-node
|
id: setup-node
|
||||||
with:
|
with:
|
||||||
node-version: ${{ env.NODE_VERSION }}
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
- name: Install uv
|
- name: "Setup Environment"
|
||||||
uses: astral-sh/setup-uv@v5
|
uses: ./.github/actions/setup-uv
|
||||||
with:
|
|
||||||
enable-cache: true
|
|
||||||
cache-dependency-glob: "uv.lock"
|
|
||||||
- name: "Set up Python"
|
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Restore uv cache
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: /tmp/.uv-cache
|
|
||||||
key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
|
|
||||||
restore-keys: |
|
|
||||||
uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
|
|
||||||
uv-${{ runner.os }}
|
|
||||||
- name: Install the project
|
- name: Install the project
|
||||||
run: uv sync --dev
|
run: uv sync --dev
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
|
|
@ -86,23 +73,10 @@ jobs:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.ref || github.ref }}
|
ref: ${{ inputs.ref || github.ref }}
|
||||||
- name: Install uv
|
- name: "Setup Environment"
|
||||||
uses: astral-sh/setup-uv@v5
|
uses: ./.github/actions/setup-uv
|
||||||
with:
|
|
||||||
enable-cache: true
|
|
||||||
cache-dependency-glob: "uv.lock"
|
|
||||||
- name: "Set up Python"
|
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Restore uv cache
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: /tmp/.uv-cache
|
|
||||||
key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
|
|
||||||
restore-keys: |
|
|
||||||
uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
|
|
||||||
uv-${{ runner.os }}
|
|
||||||
- name: Install the project
|
- name: Install the project
|
||||||
run: uv sync --dev
|
run: uv sync --dev
|
||||||
- name: Run integration tests
|
- name: Run integration tests
|
||||||
|
|
@ -122,6 +96,8 @@ jobs:
|
||||||
ref: ${{ inputs.ref || github.ref }}
|
ref: ${{ inputs.ref || github.ref }}
|
||||||
- name: "Setup Environment"
|
- name: "Setup Environment"
|
||||||
uses: ./.github/actions/setup-uv
|
uses: ./.github/actions/setup-uv
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
- name: Check Version
|
- name: Check Version
|
||||||
id: check-version
|
id: check-version
|
||||||
|
|
|
||||||
19
.github/workflows/store_pytest_durations.yml
vendored
19
.github/workflows/store_pytest_durations.yml
vendored
|
|
@ -23,23 +23,8 @@ jobs:
|
||||||
UV_CACHE_DIR: /tmp/.uv-cache
|
UV_CACHE_DIR: /tmp/.uv-cache
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Install uv
|
- name: "Setup Environment"
|
||||||
uses: astral-sh/setup-uv@v5
|
uses: ./.github/actions/setup-uv
|
||||||
with:
|
|
||||||
enable-cache: true
|
|
||||||
cache-dependency-glob: "uv.lock"
|
|
||||||
- name: "Set up Python"
|
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
|
||||||
python-version: "3.12"
|
|
||||||
- name: Restore uv cache
|
|
||||||
uses: actions/cache@v4
|
|
||||||
with:
|
|
||||||
path: /tmp/.uv-cache
|
|
||||||
key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
|
|
||||||
restore-keys: |
|
|
||||||
uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
|
|
||||||
uv-${{ runner.os }}
|
|
||||||
- name: Install the project
|
- name: Install the project
|
||||||
run: uv sync --dev
|
run: uv sync --dev
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
|
|
|
||||||
2
.github/workflows/style-check-py.yml
vendored
2
.github/workflows/style-check-py.yml
vendored
|
|
@ -19,6 +19,8 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: "Setup Environment"
|
- name: "Setup Environment"
|
||||||
uses: ./.github/actions/setup-uv
|
uses: ./.github/actions/setup-uv
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
- name: Register problem matcher
|
- name: Register problem matcher
|
||||||
run: echo "::add-matcher::.github/workflows/matchers/ruff.json"
|
run: echo "::add-matcher::.github/workflows/matchers/ruff.json"
|
||||||
- name: Run Ruff Check
|
- name: Run Ruff Check
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue