diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index a54f2b9..ce3b80b 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -1,4 +1,4 @@ -name: Continuous Disaster... +name: CI on: pull_request: @@ -37,10 +37,10 @@ jobs: options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 steps: + - uses: actions/checkout@v3 - name: Create database schema run: PGPASSWORD=secret psql -h 127.0.0.1 -d testdb -U app-user -c "CREATE SCHEMA shakespeare; CREATE SCHEMA happy_hog;" - - uses: actions/checkout@v3 - uses: actions/setup-python@v4 + - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - name: Install Poetry diff --git a/app/models/base.py b/app/models/base.py index 045246e..7dc7e3e 100644 --- a/app/models/base.py +++ b/app/models/base.py @@ -66,3 +66,4 @@ class Base: for k, v in kwargs.items(): setattr(self, k, v) await self.save(db_session) +