Skip to content

Commit

Permalink
Use REFLEX_DEP instead of REFLEX_VERSION (#209)
Browse files Browse the repository at this point in the history
Allow specification of reflex as a full pip URL so CI can test with unreleased
versions of reflex.
  • Loading branch information
masenf authored Feb 16, 2024
1 parent 49ed041 commit 4b9162d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/app_harness.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: app-harness
env:
# TODO: switch to the official release
REFLEX_VERSION: '==0.4.0a4'
REFLEX_DEP: 'reflex==0.4.0a4'
TELEMETRY_ENABLED: false
APP_HARNESS_HEADLESS: 1
on:
Expand All @@ -11,8 +11,8 @@ on:
branches: [main]
workflow_dispatch:
inputs:
reflex_version:
description: 'Reflex version'
reflex_dep:
description: 'Reflex dep (raw pip spec)'

jobs:
list-examples-with-tests:
Expand Down Expand Up @@ -51,6 +51,6 @@ jobs:
python -m venv venv
source venv/bin/activate
pip install 'reflex${{ github.event.inputs.reflex_version || env.REFLEX_VERSION }}' -r requirements.txt -r requirements-dev.txt
pip install '${{ github.event.inputs.reflex_dep || env.REFLEX_DEP }}' -r requirements.txt -r requirements-dev.txt
reflex init
pytest tests -vv
8 changes: 4 additions & 4 deletions .github/workflows/check_export.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: check-export
env:
# TODO: switch to the official release
REFLEX_VERSION: '==0.4.0a4'
REFLEX_DEP: 'reflex==0.4.0a4'
TELEMETRY_ENABLED: false
on:
push:
Expand All @@ -10,8 +10,8 @@ on:
branches: [main]
workflow_dispatch:
inputs:
reflex_version:
description: 'Reflex version'
reflex_dep:
description: 'Reflex dep (raw pip spec)'

jobs:
list-examples:
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
python -m venv venv
source venv/bin/activate
pip install 'reflex${{ github.event.inputs.reflex_version || env.REFLEX_VERSION }}' -r requirements.txt
pip install '${{ github.event.inputs.reflex_dep || env.REFLEX_DEP }}' -r requirements.txt
export OPENAI_API_KEY="dummy"
reflex init
reflex export
Expand Down

0 comments on commit 4b9162d

Please sign in to comment.