|
19 | 19 | matrix:
|
20 | 20 | os: ["windows-latest"]
|
21 | 21 | python_version: ["3.10", "3.11", "3.12"]
|
22 |
| - exclude: |
23 |
| - - os: macos-latest-xlarge |
24 |
| - python_version: "3.10" |
25 | 22 | steps:
|
26 | 23 | - 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 |
48 | 24 | - name: Setup python
|
49 | 25 | uses: actions/setup-python@v5
|
50 | 26 | with:
|
|
56 | 32 | - name: Install app as editable app
|
57 | 33 | run: |
|
58 | 34 | 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 |
64 | 35 | - name: Setup node
|
65 | 36 | uses: actions/setup-node@v4
|
66 | 37 | with:
|
|
70 | 41 | cd ./src/frontend
|
71 | 42 | npm install
|
72 | 43 | 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 |
84 | 44 | - name: Run E2E tests on Windows with Playwright
|
85 |
| - if: runner.os == 'Windows' |
86 | 45 | run: |
|
87 |
| - echo "PLAYWRIGHT_BROWSERS_PATH=$HOME\.cache\playwright-bin" >> $GITHUB_ENV |
| 46 | + export PLAYWRIGHT_BROWSERS_PATH="$HOME\AppData\Local\ms-playwright" |
88 | 47 | playwright install chromium --with-deps
|
89 | 48 | python3 -m pytest tests/e2e.py --tracing=retain-on-failure
|
90 | 49 | - name: Upload test artifacts
|
|
0 commit comments