Skip to content

Commit

Permalink
test the zip files
Browse files Browse the repository at this point in the history
  • Loading branch information
jackie-pc committed Sep 11, 2023
1 parent 67e2c68 commit ccc1cbe
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/check_export.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,30 @@ jobs:
exit 1
fi
pushd $f
if !( grep -w "^reflex" requirements.txt >/dev/null 2>&1 ); then
echo "$f/requirements.txt does not contain 'reflex'"
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
for a in frontend.zip backend.zip; do
if unzip -t "$a"; then
echo "$a prepared as expected"
else
echo "ERROR: $a is not a valid zip file"
exit 1
fi
done
deactivate
if ls frontend.zip backend.zip; then
echo "Archives prepared as expected"
else
echo "ERROR: Archives not prepared as expected"
exit 1
fi
popd
fi
done

0 comments on commit ccc1cbe

Please sign in to comment.