Skip to content

ci(lint): Add PAT #2401

ci(lint): Add PAT

ci(lint): Add PAT #2401

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
build:
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
cache-dependency-path: "**/requirements*.txt"
- run: pip install -r requirements_dev.txt
- name: Run checks and tests
env:
DATABASE_URL: postgresql://postgres:postgres@localhost:${{ job.services.postgres.ports[5432] }}/postgres
TEST_DATABASE_URL: postgresql://postgres:postgres@localhost:${{ job.services.postgres.ports[5432] }}/postgres
shell: bash
run: |
pybabel compile -f -d locale
alembic upgrade head
alembic check
coverage run --source=app -m pytest -W error --random-order --random-order-bucket=global
- env:
TEST_SETTINGS: True
run: pytest -W error settings_tests/test_settings.py
- uses: coverallsapp/github-action@v2
services:
postgres:
image: postgres:15
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432/tcp