Skip to content

Commit

Permalink
check exportability
Browse files Browse the repository at this point in the history
  • Loading branch information
jackie-pc committed Sep 11, 2023
1 parent 28baa68 commit 7eaaad7
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/check_export.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: check-export
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
check-requirements:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- run: |
for f in $(ls -1); do
if [[ -d $f ]]; then
if [[ ! -f $f/requirements.txt ]]; then
echo "$f/requirements.txt is MISSING"
exit 1
fi
python -m venv venv
source venv/bin/activate
# pin reflex version - no moving target
pip install reflex==0.2.7
pip install -r requirements.txt
reflex init
reflex export
deactivate
if ls frontend.zip backend.zip; then
echo "Archives prepared as expected"
else
echo "ERROR: Archives not prepared as expected"
exit 1
fi
fi
done

0 comments on commit 7eaaad7

Please sign in to comment.