refactor: update test fixtures and remove unused environment variables #490
This file contains hidden or 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: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: [ "3.14.0" ] | |
| env: | |
| PYTHONDONTWRITEBYTECODE: 1 | |
| PYTHONUNBUFFERED: 1 | |
| POSTGRES_DB: testdb | |
| POSTGRES_HOST: 127.0.0.1 | |
| POSTGRES_USER: panettone | |
| POSTGRES_PASSWORD: secret | |
| PGPASSWORD: secret | |
| REDIS_HOST: 127.0.0.1 | |
| REDIS_PORT: 6379 | |
| REDIS_DB: 2 | |
| JWT_EXPIRE: 3600 | |
| JWT_ALGORITHM: HS256 | |
| services: | |
| redis: | |
| image: redis:latest | |
| ports: | |
| - 6379:6379 | |
| sqldb: | |
| image: postgres:17 | |
| env: | |
| POSTGRES_USER: panettone | |
| POSTGRES_PASSWORD: secret | |
| POSTGRES_DB: testdb | |
| ports: | |
| - 5432:5432 | |
| options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v5 | |
| - name: Install the latest version of uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Lint with ruff | |
| run: uv run --frozen ruff check . | |
| - name: Test with python ${{ matrix.python-version }} | |
| run: uv run pytest |