Skip to content

Commit b8b7273

Browse files
committed
WIP CI
1 parent d688973 commit b8b7273

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

.github/workflows/lint_test.yml

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,38 @@ jobs:
1212
all:
1313
runs-on: ubuntu-latest
1414
env:
15+
PYTHONPATH: .
1516
DJANGO_SETTINGS_MODULE: config.settings.test
17+
TEST_PGUSER: postgres
18+
TEST_PGPASSWORD: postgres
19+
TEST_PGPORT: 5431
20+
TEST_PGDATABASE: test_docurba
1621
SECRET_KEY: test_secret_key
17-
# Default supabase URL: https://supabase.com/docs/guides/local-development/cli/getting-started?queryGroups=access-method&access-method=postgres
18-
DATABASE_URL: postgresql://postgres:postgres@localhost:54322/postgres
1922
UPSTREAM_NUXT: http://localhost:3000
2023

2124
steps:
2225
- uses: actions/checkout@v4
23-
24-
- name: 🛠️ Installation de la CLI Supabase
25-
uses: supabase/setup-cli@b60b5899c73b63a2d2d651b1e90db8d4c9392f51
26-
with:
27-
version: 2.60.0
28-
29-
- run: supabase db start
30-
3126
- uses: actions/setup-python@v5
3227
with:
3328
python-version-file: django/.python-version
3429
- uses: astral-sh/setup-uv@v6
3530
with:
3631
activate-environment: true
3732
- run: uv sync --locked --all-extras --dev --active
38-
- run: pytest --create-db
33+
34+
- uses: jdx/mise-action@v3
35+
with:
36+
version: 2025.11.4 # [default: latest] mise version to install
37+
install: true # [default: true] run `mise install`
38+
cache: true # [default: true] cache mise using GitHub's cache
39+
experimental: true # [default: false] enable experimental features
40+
# automatically write this mise.toml file
41+
working_directory: ..
42+
43+
- name: 🛠️ Initialize the test database
44+
run: mise start:tests
45+
46+
- run: pytest
3947
- run: ruff format --diff .
4048
- run: ruff check --output-format=github .
4149
- run: python -m django makemigrations --check --dry-run --noinput || (echo "⚠ Migration manquante ⚠"; exit 1)

0 commit comments

Comments
 (0)