-
Notifications
You must be signed in to change notification settings - Fork 359
38 lines (37 loc) · 1.03 KB
/
check_export.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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
pushd $f
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
popd
fi
done