Skip to content

Commit

Permalink
Merge pull request #141 from reflex-dev/jackie-check-req
Browse files Browse the repository at this point in the history
Ensure requirements.txt file exists and contains "reflex" for each example
  • Loading branch information
jackie-pc authored Sep 1, 2023
2 parents 3b046d9 + f84a9f4 commit fd5e7fa
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/check_requirements.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: check-requirements
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
check-requirements:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: |
RC=0
for f in $(ls -1); do
if [[ -d $f ]]; then
if [[ ! -f $f/requirements.txt ]]; then
echo "$f/requirements.txt is MISSING"
RC=1
continue
fi
if !( grep -w "^reflex" $f/requirements.txt >/dev/null 2>&1 ); then
echo "$f/requirements.txt does not contain 'reflex'"
RC=1
continue
fi
fi
done
exit $RC
1 change: 1 addition & 0 deletions ecommerce/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
reflex>=0.2.0
2 changes: 1 addition & 1 deletion gpt/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pynecone>=0.1.33
reflex>=0.2.0
openai
1 change: 1 addition & 0 deletions stable_diffusion/requirements.txt

0 comments on commit fd5e7fa

Please sign in to comment.