Skip to content

Commit 6c9e7eb

Browse files
committed
clean up repo
1 parent 62304ab commit 6c9e7eb

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/export.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Check Export
2+
3+
env:
4+
TELEMETRY_ENABLED: false
5+
on:
6+
push:
7+
branches: [main]
8+
pull_request:
9+
branches: [main]
10+
11+
jobs:
12+
find-folders:
13+
runs-on: ubuntu-latest
14+
outputs:
15+
folders: ${{ steps.find-rxconfig.outputs.folders }}
16+
steps:
17+
- uses: actions/checkout@v3
18+
19+
- name: Find folders with rxconfig.py
20+
id: find-rxconfig
21+
run: |
22+
FOLDERS=$(find . -maxdepth 2 -type f -name "rxconfig.py" | xargs dirname | sed 's|^\./||' | jq -R -s -c 'split("\n")[:-1]')
23+
echo "folders=$FOLDERS" >> $GITHUB_OUTPUT
24+
echo "Found folders: $FOLDERS"
25+
26+
check-export:
27+
needs: find-folders
28+
strategy:
29+
matrix:
30+
folder: ${{ fromJson(needs.find-folders.outputs.folders) }}
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v4
34+
- uses: astral-sh/setup-uv@v6
35+
with:
36+
python-version: 3.12
37+
activate-environment: true
38+
- name: Install dependencies
39+
working-directory: ${{ matrix.folder }}
40+
run: uv pip install -r requirements.txt
41+
- name: Run export
42+
working-directory: ${{ matrix.folder }}
43+
run: uv run reflex export

0 commit comments

Comments
 (0)