@@ -38,19 +38,33 @@ jobs:
3838 steps :
3939 - uses : actions/checkout@v3
4040 - uses : actions/setup-python@v3
41- - run : |
42- f=${{ matrix.example }}
43- cd "$f"
44-
41+ - name : Check for requirements-dev.txt
42+ working-directory : ${{ matrix.example }}
43+ run : |
4544 if [[ ! -f requirements-dev.txt ]]; then
4645 echo "requirements-dev.txt is MISSING"
4746 exit 1
4847 fi
49-
50- python -m venv venv
48+ - name : Set up Python Virtual Environment
49+ working-directory : ${{ matrix.example }}
50+ run : python -m venv venv
51+ - name : Install Dependencies
52+ working-directory : ${{ matrix.example }}
53+ run : |
5154 source venv/bin/activate
52-
5355 pip install '${{ github.event.inputs.reflex_dep || env.REFLEX_DEP }}' -r requirements.txt -r requirements-dev.txt
54- playwright install --with-deps
56+ - name : Install Playwright browsers
57+ working-directory : ${{ matrix.example }}
58+ run : |
59+ source venv/bin/activate
60+ playwright install chromium --with-deps --only-shell
61+ - name : Initialize Reflex App
62+ working-directory : ${{ matrix.example }}
63+ run : |
64+ source venv/bin/activate
5565 reflex init
66+ - name : Run Tests
67+ working-directory : ${{ matrix.example }}
68+ run : |
69+ source venv/bin/activate
5670 pytest tests -vv
0 commit comments