Skip to content

Commit fd8815e

Browse files
John AzizJohn Aziz
authored andcommitted
update to run on windows and speed up:
1 parent 276f73a commit fd8815e

File tree

1 file changed

+1
-42
lines changed

1 file changed

+1
-42
lines changed

.github/workflows/app-tests.yaml

Lines changed: 1 addition & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -19,32 +19,8 @@ jobs:
1919
matrix:
2020
os: ["windows-latest"]
2121
python_version: ["3.10", "3.11", "3.12"]
22-
exclude:
23-
- os: macos-latest-xlarge
24-
python_version: "3.10"
2522
steps:
2623
- uses: actions/checkout@v4
27-
- name: Check for MacOS Runner
28-
if: matrix.os == 'macos-latest-xlarge'
29-
run: brew install postgresql@14
30-
- name: Install pgvector on Windows using install-pgvector.bat
31-
if: matrix.os == 'windows-latest'
32-
shell: cmd
33-
run: .github\workflows\install-pgvector.bat
34-
- name: Install PostgreSQL development libraries
35-
if: matrix.os == 'ubuntu-latest'
36-
run: |
37-
sudo apt update
38-
sudo apt install postgresql-server-dev-14
39-
- name: Setup postgres
40-
uses: ikalnytskyi/action-setup-postgres@v6
41-
with:
42-
username: admin
43-
password: postgres
44-
database: postgres
45-
- name: Install pgvector on MacOS/Linux using install-pgvector.sh
46-
if: matrix.os != 'windows-latest'
47-
run: .github/workflows/install-pgvector.sh
4824
- name: Setup python
4925
uses: actions/setup-python@v5
5026
with:
@@ -56,11 +32,6 @@ jobs:
5632
- name: Install app as editable app
5733
run: |
5834
python -m pip install -e src/backend
59-
- name: Setup local database with seed data
60-
run: |
61-
cp .env.sample .env
62-
python ./src/backend/fastapi_app/setup_postgres_database.py
63-
python ./src/backend/fastapi_app/setup_postgres_seeddata.py
6435
- name: Setup node
6536
uses: actions/setup-node@v4
6637
with:
@@ -70,21 +41,9 @@ jobs:
7041
cd ./src/frontend
7142
npm install
7243
npm run build
73-
- name: Run MyPy
74-
run: python3 -m mypy .
75-
- name: Run Pytest
76-
run: python3 -m pytest -s -vv --cov --cov-fail-under=85
77-
- name: Run E2E tests with Playwright
78-
id: e2e
79-
if: runner.os != 'Windows'
80-
run: |
81-
echo "PLAYWRIGHT_BROWSERS_PATH=$HOME/.cache/playwright-bin" >> $GITHUB_ENV
82-
playwright install chromium --with-deps
83-
python3 -m pytest tests/e2e.py --tracing=retain-on-failure
8444
- name: Run E2E tests on Windows with Playwright
85-
if: runner.os == 'Windows'
8645
run: |
87-
echo "PLAYWRIGHT_BROWSERS_PATH=$HOME\.cache\playwright-bin" >> $GITHUB_ENV
46+
export PLAYWRIGHT_BROWSERS_PATH="$HOME\AppData\Local\ms-playwright"
8847
playwright install chromium --with-deps
8948
python3 -m pytest tests/e2e.py --tracing=retain-on-failure
9049
- name: Upload test artifacts

0 commit comments

Comments
 (0)