Utilise la variante tabular pour tous les nombres #75
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: Lint & Test | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| defaults: | |
| run: | |
| working-directory: django | |
| jobs: | |
| all: | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: postgres:15.1 | |
| env: | |
| POSTGRES_PASSWORD: docurba | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 1s | |
| --health-timeout 1s | |
| --health-retries 50 | |
| ports: | |
| - 5434:5432 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version-file: django/.python-version | |
| cache: "pip" | |
| - run: pip install -r requirements-dev.txt | |
| - run: pytest | |
| env: | |
| SECRET_KEY: test_secret_key | |
| DEBUG: "True" | |
| DATABASE_URL: postgres://postgres:docurba@localhost:5434/docurba | |
| UPSTREAM_NUXT: http://localhost:3000 | |
| - run: ruff format --diff . | |
| - run: ruff check --output-format=github . |