Skip to content

Commit 396e1d3

Browse files
committed
fix rx-shout integration test for new uv project structure
1 parent 2df5344 commit 396e1d3

1 file changed

Lines changed: 15 additions & 5 deletions

File tree

.github/workflows/integration_tests.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,17 +186,27 @@ jobs:
186186
- name: Init reflex-web from template
187187
run: uv run reflex init --template https://github.com/masenf/rx_shout
188188
working-directory: ./rx-shout-from-template
189-
- name: ignore reflex pin in requirements
190-
run: sed -i -e '/reflex==/d' requirements.txt
189+
- name: Override reflex source to local checkout
190+
# Pointing `reflex` at the parent reflex workspace makes uv pick up
191+
# reflex AND every reflex-* sub-package as editable installs from
192+
# this repo, instead of pulling them from PyPI.
191193
working-directory: ./rx-shout-from-template
192-
- name: Install additional dependencies
193-
run: uv pip install -r requirements.txt
194+
run: |
195+
cat >> pyproject.toml <<'EOF'
196+
197+
[tool.uv.sources]
198+
reflex = { path = "..", editable = true }
199+
EOF
200+
- name: Install rx-shout dependencies
201+
# Re-locks because pyproject.toml changed; --prerelease=allow matches
202+
# the template's own lock options (rx_shout depends on reflex pre-releases).
194203
working-directory: ./rx-shout-from-template
204+
run: uv sync --prerelease=allow
195205
- name: Run Website and Check for errors
196206
run: |
197207
# Check that npm is home
198208
npm -v
199-
uv run bash scripts/integration.sh ./rx-shout-from-template prod
209+
uv run --project ./rx-shout-from-template --no-sync bash scripts/integration.sh ./rx-shout-from-template prod
200210
201211
reflex-docs-macos:
202212
if: github.event_name == 'push' && github.ref == 'refs/heads/main'

0 commit comments

Comments
 (0)