Skip to content

Commit e9d341b

Browse files
committed
add psutil to tests
1 parent a69a6e1 commit e9d341b

File tree

3 files changed

+23
-7
lines changed

3 files changed

+23
-7
lines changed

.github/workflows/app_harness.yml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -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
56+
- name: Install Playwright browsers
57+
working-directory: ${{ matrix.example }}
58+
run: |
59+
source venv/bin/activate
5460
playwright install --with-deps
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

counter/requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ pytest-asyncio
44
playwright
55
pytest-playwright
66
uvicorn
7+
psutil

form-designer/requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ pytest
22
playwright
33
pytest-playwright
44
uvicorn
5+
psutil

0 commit comments

Comments
 (0)