File tree Expand file tree Collapse file tree 9 files changed +47
-243
lines changed Expand file tree Collapse file tree 9 files changed +47
-243
lines changed Original file line number Diff line number Diff line change 1+ name : Alembic Upgrade Head
2+ on : pull_request
3+
4+ jobs :
5+ alembic_upgrade_head :
6+ runs-on : ubuntu-latest
7+
8+ services :
9+ postgres :
10+ image : postgres:15
11+ ports :
12+ - 5432:5432
13+ options : >-
14+ --health-cmd "pg_isready -U postgres"
15+ --health-interval 10s
16+ --health-timeout 5s
17+ --health-retries 5
18+ env :
19+ POSTGRES_USER : runner
20+ POSTGRES_DB : main
21+ POSTGRES_HOST_AUTH_METHOD : trust
22+
23+ steps :
24+ - uses : actions/checkout@v4
25+
26+ - name : Wait for PostgreSQL to be ready
27+ run : |
28+ until pg_isready -h localhost -p 5432 -U runner; do
29+ echo "Waiting for PostgreSQL..."
30+ sleep 1
31+ done
32+
33+ - name : Install dependencies
34+ run : |
35+ sudo apt-get install python3.11 python3.11-venv
36+ python3.11 -m pip install --upgrade pip
37+ python3.11 -m venv venv
38+ source ./venv/bin/activate
39+ pip install -r requirements.txt
40+
41+ - name : Run alembic upgrade head
42+ run : |
43+ source ./venv/bin/activate
44+ cd src
45+ alembic upgrade head
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Unit Tests
22on : pull_request
33
44jobs :
5- test :
5+ unit_tests :
66 runs-on : ubuntu-latest
77 timeout-minutes : 5
88
3131 - name : Run unit tests
3232 run : |
3333 source ./venv/bin/activate
34- pytest ./tests/unit -v
34+ pytest ./tests/unit -v
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments