This repository has been archived by the owner on Jul 19, 2024. It is now read-only.
Update dependency pytest-asyncio to ^0.23.0 #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
test: | |
name: test | |
runs-on: ubuntu-latest | |
env: | |
LOG_FORMATTER: brief | |
SQLALCHEMY_DATABASE_URI: "postgresql://[email protected]:5432/polaris" | |
REDIS_URL: redis://127.0.0.1:6379/0 | |
TESTING: "True" | |
POLARIS_PUBLIC_URL: http://fake-polaris-public-url | |
services: | |
postgres: | |
image: postgres:latest | |
ports: | |
- 5432:5432 | |
env: | |
POSTGRES_DB: polaris_test | |
POSTGRES_HOST_AUTH_METHOD: trust | |
redis: | |
image: redis:latest | |
ports: | |
- 6379:6379 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- run: pip install poetry | |
- run: poetry config http-basic.azure jeff ${{ secrets.AZURE_DEVOPS_PAT }} | |
- run: poetry install | |
- run: poetry run alembic upgrade head | |
- run: poetry run black --check . | |
- run: poetry run isort --check . | |
- run: poetry run xenon --no-assert --max-average A --max-modules B --max-absolute B . | |
- run: poetry run ruff polaris tests asgi.py | |
- run: poetry run mypy . | |
- run: poetry run refurb polaris tests asgi.py | |
- run: poetry run pytest --verbose --cov polaris --cov-report term-missing |