-
-
Notifications
You must be signed in to change notification settings - Fork 9
40 lines (38 loc) · 1.08 KB
/
scripts.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: scripts
on:
push:
branches: main
pull_request:
branches: main
jobs:
end-to-end:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: [3.9]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
architecture: x64
- uses: abatilo/actions-poetry@v3
with:
poetry-version: "1.8.2"
- name: Resolve dependencies
run: |
poetry export -f requirements.txt --without-hashes --output requirements.txt
python -m pip install --upgrade uv
uv pip install --system -r scripts/requirements.txt
- name: Run the backend & the test
env:
SUPERUSER_LOGIN: dummy_login
SUPERUSER_PWD: dummy&P@ssw0rd!
POSTGRES_USER: dummy_pg_user
POSTGRES_PASSWORD: dummy_pg_pwd
POSTGRES_DB: dummy_pg_db
run: |
docker compose -f docker-compose.dev.yml up -d --build --wait
python scripts/test_e2e.py