Skip to content

Commit b1f228e

Browse files
authored
Merge pull request #402 from devsetgo/dev
Adding new base schema for database types
2 parents 91b7707 + 09a53e5 commit b1f228e

22 files changed

+1083
-587
lines changed

.bumpversion.cfg

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
[bumpversion]
2-
current_version = 0.11.2
2+
current_version = 0.12.0
33
commit = False
44
tag = False
55
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(-(?P<release>[a-z]+)(?P<num>\d+))?
6-
serialize =
6+
serialize =
77
{major}.{minor}.{patch}-{release}{num}
88
{major}.{minor}.{patch}
99

1010
[bumpversion:part:release]
1111
optional_value = alpha
12-
values =
12+
values =
1313
alpha
1414
beta
1515
pre-release

.devcontainer/docker-compose.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ services:
1111
networks:
1212
- app-network
1313

14-
postgresdb:
14+
postgresdbTest:
1515
image: postgres:latest
1616
restart: unless-stopped
1717
volumes:
@@ -34,7 +34,7 @@ services:
3434
ports:
3535
- "5050:80"
3636
depends_on:
37-
- postgresdb
37+
- postgresdbTest
3838
networks:
3939
- app-network
4040

.github/workflows/testing.yml

Lines changed: 37 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,49 @@
11
name: Testing
22

3-
on: [push]
3+
on:
4+
pull_request:
5+
workflow_dispatch:
46

57
jobs:
68
build:
79
env:
8-
USING_COVERAGE: '3.12'
10+
USING_COVERAGE: "3.12"
11+
DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/postgres"
912
runs-on: ubuntu-latest
13+
services:
14+
postgresdbTest:
15+
image: postgres:latest
16+
env:
17+
POSTGRES_USER: postgres
18+
POSTGRES_PASSWORD: postgres
19+
POSTGRES_DB: postgres
20+
ports:
21+
- 5432:5432
22+
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
1023
strategy:
1124
max-parallel: 10
1225
matrix:
1326
os: [ubuntu-latest, windows-latest]
14-
python-version: ["3.9","3.10","3.11","3.12"]
15-
27+
python-version: ["3.12","3.9", "3.10", "3.11"]
1628
steps:
17-
- uses: actions/checkout@v4
18-
- name: Set up Python ${{ matrix.python-version }}
19-
uses: actions/setup-python@v5
20-
with:
21-
python-version: ${{ matrix.python-version }}
22-
- name: Install dependencies
23-
run: |
24-
python -m pip install --upgrade pip
25-
pip install -r requirements.txt --use-deprecated=legacy-resolver
26-
# - name: Lint with flake8
27-
# run: |
28-
# pip install flake8
29-
# # stop the build if there are Python syntax errors or undefined names
30-
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
31-
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
32-
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
33-
- name: Test with pytest
34-
run: |
35-
pip install pytest
36-
pytest
29+
- uses: actions/checkout@v4
30+
- name: Wait for PostgreSQL to become ready
31+
run: |
32+
for i in {1..30}; do
33+
pg_isready -h localhost -p 5432 && echo Success && exit 0
34+
echo -n .
35+
sleep 2
36+
done
37+
echo Failed waiting for Postgres && exit 1
38+
- name: Set up Python ${{ matrix.python-version }}
39+
uses: actions/setup-python@v5
40+
with:
41+
python-version: ${{ matrix.python-version }}
42+
- name: Install dependencies
43+
run: |
44+
python -m pip install --upgrade pip
45+
pip install -r requirements.txt --use-deprecated=legacy-resolver
46+
- name: Test with pytest
47+
run: |
48+
pip install pytest
49+
pytest

0 commit comments

Comments
 (0)