Skip to content

Commit 35bfa42

Browse files
authored
remove minor version from ci (#5163)
* remove minor version from ci * update python version for check outdated deps * remove uv version * that would be crazy
1 parent d390d89 commit 35bfa42

File tree

10 files changed

+20
-92
lines changed

10 files changed

+20
-92
lines changed

.github/actions/setup_build_env/action.yml

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#
77
# Exit conditions:
88
# - Python of version `python-version` is ready to be invoked as `python`.
9-
# - Uv of version `uv-version` is ready to be invoked as `uv`.
109
# - If `run-uv-sync` is true, deps as defined in `pyproject.toml` will have been installed into the venv at `create-venv-at-path`.
1110

1211
name: "Setup Reflex build environment"
@@ -15,10 +14,6 @@ inputs:
1514
python-version:
1615
description: "Python version setup"
1716
required: true
18-
uv-version:
19-
description: "Uv version to install"
20-
required: false
21-
default: "0.6.9"
2217
run-uv-sync:
2318
description: "Whether to run uv sync on current dir"
2419
required: false
@@ -34,38 +29,7 @@ runs:
3429
- name: Install UV
3530
uses: astral-sh/setup-uv@v5
3631
with:
37-
version: ${{ inputs.uv-version }}
3832
python-version: ${{ inputs.python-version }}
3933
enable-cache: true
4034
prune-cache: false
4135
cache-dependency-glob: "uv.lock"
42-
43-
- name: Restore cached project python deps
44-
id: restore-pydeps-cache
45-
uses: actions/cache/restore@v4
46-
with:
47-
path: ${{ inputs.create-venv-at-path }}
48-
key: ${{ runner.os }}-python-${{ inputs.python-version }}-pydeps-${{ hashFiles('**/uv.lock') }}
49-
50-
- if: ${{ inputs.run-uv-sync == 'true' && steps.restore-pydeps-cache.outputs.cache-hit != 'true' }}
51-
name: Run uv sync (will get cached)
52-
# We skip over installing the root package (the current project code under CI)
53-
# Root package should not be cached - its content is not reflected in uv.lock / cache key
54-
shell: bash
55-
run: |
56-
uv sync --all-extras --dev --no-install-project
57-
58-
- if: steps.restore-pydeps-cache.outputs.cache-hit != 'true'
59-
name: Save Python deps to cache
60-
uses: actions/cache/save@v4
61-
with:
62-
path: ${{ inputs.create-venv-at-path }}
63-
key: ${{ steps.restore-pydeps-cache.outputs.cache-primary-key }}
64-
65-
- if: ${{ inputs.run-uv-sync == 'true' }}
66-
name: Run uv sync (root package)
67-
# Here we really install the root package (the current project code under CI).env:
68-
# This should not be cached.
69-
shell: bash
70-
run: |
71-
uv sync --all-extras --dev

.github/workflows/benchmarks.yml

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,13 @@ jobs:
2525
# if: github.event.pull_request.merged == true
2626
strategy:
2727
fail-fast: false
28-
matrix:
29-
# Show OS combos first in GUI
30-
os: [ubuntu-latest]
31-
python-version: ["3.12.8"]
32-
node-version: ["18.x"]
3328

34-
runs-on: ${{ matrix.os }}
29+
runs-on: ubuntu-latest
3530
steps:
3631
- uses: actions/checkout@v4
37-
- name: Use Node.js ${{ matrix.node-version }}
38-
uses: actions/setup-node@v4
39-
with:
40-
node-version: ${{ matrix.node-version }}
4132
- uses: ./.github/actions/setup_build_env
4233
with:
43-
python-version: ${{ matrix.python-version }}
34+
python-version: 3.13
4435
run-uv-sync: true
4536

4637
- name: Clone Reflex Website Repo
@@ -80,7 +71,7 @@ jobs:
8071
- uses: actions/checkout@v4
8172
- uses: ./.github/actions/setup_build_env
8273
with:
83-
python-version: 3.12.8
74+
python-version: 3.13
8475
run-uv-sync: true
8576

8677
- name: Build reflex
@@ -90,7 +81,7 @@ jobs:
9081
# Only run if the database creds are available in this context.
9182
run:
9283
uv run python benchmarks/benchmark_package_size.py --os ubuntu-latest
93-
--python-version 3.12.8 --commit-sha "${{ github.sha }}" --pr-id "${{ github.event.pull_request.id }}"
84+
--python-version 3.13 --commit-sha "${{ github.sha }}" --pr-id "${{ github.event.pull_request.id }}"
9485
--branch-name "${{ github.head_ref || github.ref_name }}"
9586
--path ./dist
9687

@@ -103,7 +94,6 @@ jobs:
10394
matrix:
10495
# Show OS combos first in GUI
10596
os: [ubuntu-latest, windows-latest, macos-latest]
106-
python-version: ["3.12.8"]
10797

10898
runs-on: ${{ matrix.os }}
10999
steps:
@@ -112,7 +102,7 @@ jobs:
112102
id: setup-python
113103
uses: actions/setup-python@v5
114104
with:
115-
python-version: ${{ matrix.python-version }}
105+
python-version: 3.13
116106
- name: Install UV
117107
uses: astral-sh/setup-uv@v5
118108
with:
@@ -126,7 +116,7 @@ jobs:
126116
- name: calculate and upload size
127117
run:
128118
uv run python benchmarks/benchmark_package_size.py --os "${{ matrix.os }}"
129-
--python-version "${{ matrix.python-version }}" --commit-sha "${{ github.sha }}"
119+
--python-version "3.13" --commit-sha "${{ github.sha }}"
130120
--pr-id "${{ github.event.pull_request.id }}"
131121
--branch-name "${{ github.head_ref || github.ref_name }}"
132122
--path ./.venv

.github/workflows/check_node_latest.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ jobs:
1818
runs-on: ubuntu-22.04
1919
strategy:
2020
matrix:
21-
python-version: ["3.12.8"]
2221
split_index: [1, 2]
2322
node-version: ["node"]
2423
fail-fast: false
@@ -27,7 +26,7 @@ jobs:
2726
- uses: actions/checkout@v4
2827
- uses: ./.github/actions/setup_build_env
2928
with:
30-
python-version: ${{ matrix.python-version }}
29+
python-version: 3.13
3130
run-uv-sync: true
3231

3332
- uses: actions/setup-node@v4

.github/workflows/check_outdated_dependencies.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818

1919
- uses: ./.github/actions/setup_build_env
2020
with:
21-
python-version: "3.10"
21+
python-version: 3.13
2222
run-uv-sync: true
2323

2424
- name: Check outdated backend dependencies
@@ -45,7 +45,7 @@ jobs:
4545
uses: actions/checkout@v4
4646
- uses: ./.github/actions/setup_build_env
4747
with:
48-
python-version: "3.10.16"
48+
python-version: 3.13
4949
run-uv-sync: true
5050

5151
- name: Clone Reflex Website Repo

.github/workflows/integration_app_harness.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
strategy:
2626
matrix:
2727
state_manager: ["redis", "memory"]
28-
python-version: ["3.11.11", "3.12.8", "3.13.1"]
28+
python-version: ["3.11", "3.12", "3.13"]
2929
split_index: [1, 2]
3030
fail-fast: false
3131
runs-on: ubuntu-22.04

.github/workflows/integration_tests.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -43,17 +43,7 @@ jobs:
4343
matrix:
4444
# Show OS combos first in GUI
4545
os: [ubuntu-latest, windows-latest]
46-
python-version: ["3.10.16", "3.11.11", "3.12.8", "3.13.1"]
47-
exclude:
48-
- os: windows-latest
49-
python-version: "3.11.11"
50-
- os: windows-latest
51-
python-version: "3.10.16"
52-
include:
53-
- os: windows-latest
54-
python-version: "3.11.9"
55-
- os: windows-latest
56-
python-version: "3.10.11"
46+
python-version: ["3.10", "3.11", "3.12", "3.13"]
5747

5848
runs-on: ${{ matrix.os }}
5949
steps:
@@ -114,13 +104,11 @@ jobs:
114104
strategy:
115105
fail-fast: false
116106
matrix:
117-
# Show OS combos first in GUI
118-
os: [ubuntu-latest]
119-
python-version: ["3.11.11", "3.12.8"]
107+
python-version: ["3.11", "3.12"]
120108

121109
env:
122110
REFLEX_WEB_WINDOWS_OVERRIDE: "1"
123-
runs-on: ${{ matrix.os }}
111+
runs-on: ubuntu-latest
124112
steps:
125113
- uses: actions/checkout@v4
126114
- uses: ./.github/actions/setup_build_env
@@ -155,7 +143,7 @@ jobs:
155143
- uses: actions/checkout@v4
156144
- uses: ./.github/actions/setup_build_env
157145
with:
158-
python-version: "3.11.11"
146+
python-version: 3.13
159147
run-uv-sync: true
160148

161149
- name: Create app directory
@@ -181,7 +169,7 @@ jobs:
181169
fail-fast: false
182170
matrix:
183171
# Note: py311 version chosen due to available arm64 darwin builds.
184-
python-version: ["3.11.9", "3.12.8"]
172+
python-version: ["3.11", "3.12"]
185173
runs-on: macos-latest
186174
steps:
187175
- uses: actions/checkout@v4

.github/workflows/performance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Set up Python
3232
uses: actions/setup-python@v5
3333
with:
34-
python-version: "3.12.8"
34+
python-version: "3.13"
3535

3636
- name: Install dependencies
3737
run: uv sync --all-extras --dev

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- uses: actions/checkout@v4
2424
- uses: ./.github/actions/setup_build_env
2525
with:
26-
python-version: 3.13.2
26+
python-version: 3.13
2727
run-uv-sync: true
2828
- uses: actions/checkout@v4
2929
with:

.github/workflows/unit_tests.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,7 @@ jobs:
2828
fail-fast: false
2929
matrix:
3030
os: [ubuntu-latest, windows-latest]
31-
python-version: ["3.10.16", "3.11.11", "3.12.8", "3.13.1"]
32-
# Windows is a bit behind on Python version availability in Github
33-
exclude:
34-
- os: windows-latest
35-
python-version: "3.11.11"
36-
- os: windows-latest
37-
python-version: "3.10.16"
38-
include:
39-
- os: windows-latest
40-
python-version: "3.11.9"
41-
- os: windows-latest
42-
python-version: "3.10.11"
31+
python-version: ["3.10", "3.11", "3.12", "3.13"]
4332
runs-on: ${{ matrix.os }}
4433

4534
# Service containers to run with `runner-job`
@@ -88,8 +77,7 @@ jobs:
8877
strategy:
8978
fail-fast: false
9079
matrix:
91-
# Note: py310, py311 versions chosen due to available arm64 darwin builds.
92-
python-version: ["3.10.11", "3.11.9", "3.12.8", "3.13.1"]
80+
python-version: ["3.10", "3.11", "3.12", "3.13"]
9381
runs-on: macos-latest
9482
steps:
9583
- uses: actions/checkout@v4

CONTRIBUTING.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,9 @@ uv run ruff format .
8686
```
8787

8888
Consider installing git pre-commit hooks so Ruff, Pyright, Darglint and `make_pyi` will run automatically before each commit.
89-
Note that pre-commit will only be installed when you use a Python version >= 3.10.
9089

9190
```bash
92-
pre-commit install
91+
uv run pre-commit install
9392
```
9493

9594
That's it you can now submit your PR. Thanks for contributing to Reflex!

0 commit comments

Comments
 (0)