Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 1 addition & 39 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +6,10 @@ jobs:
test:
runs-on: ubuntu-latest

services:
postgres:
image: postgres:alpine
ports:
- 5432:5432
env:
POSTGRES_USER: fastapiusers
POSTGRES_PASSWORD: fastapiuserspassword
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5

mariadb:
image: mariadb
ports:
- 3306:3306
env:
MARIADB_ROOT_PASSWORD: fastapiuserspassword
MARIADB_DATABASE: fastapiusers
MARIADB_USER: fastapiusers
MARIADB_PASSWORD: fastapiuserspassword

strategy:
fail-fast: false
matrix:
python_version: [3.9, '3.10', '3.11', '3.12', '3.13']
database_url:
[
"sqlite+aiosqlite:///./test-fastapiusers.db",
"postgresql+asyncpg://fastapiusers:fastapiuserspassword@localhost:5432/fastapiusers",
"mysql+aiomysql://root:fastapiuserspassword@localhost:3306/fastapiusers",
]

steps:
- uses: actions/checkout@v4
Expand All @@ -57,19 +26,12 @@ jobs:
run: |
hatch run lint-check
- name: Test
env:
DATABASE_URL: ${{ matrix.database_url }}
run: |
hatch run test-cov-xml
- uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true
- name: Build and install it on system host
run: |
hatch build
pip install dist/fastapi_users_db_sqlalchemy-*.whl
pip install dist/fastapi_users_db_dynamodb-*.whl
python test_build.py

release:
Expand Down
Loading
Loading