Skip to content

Commit d3d9d9c

Browse files
committed
WIP CI
1 parent d688973 commit d3d9d9c

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

.github/workflows/lint_test.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,37 @@ jobs:
1212
all:
1313
runs-on: ubuntu-latest
1414
env:
15+
TEST_PGUSER: postgres
16+
TEST_PGPASSWORD: postgres
17+
TEST_PGPORT: 5431
18+
TEST_PGDATABASE: test_docurba
1519
DJANGO_SETTINGS_MODULE: config.settings.test
1620
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
1921
UPSTREAM_NUXT: http://localhost:3000
2022

2123
steps:
2224
- 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-
3125
- uses: actions/setup-python@v5
3226
with:
3327
python-version-file: django/.python-version
3428
- uses: astral-sh/setup-uv@v6
3529
with:
3630
activate-environment: true
3731
- run: uv sync --locked --all-extras --dev --active
38-
- run: pytest --create-db
32+
33+
- uses: jdx/mise-action@v3
34+
with:
35+
version: 2025.11.4 # [default: latest] mise version to install
36+
install: true # [default: true] run `mise install`
37+
cache: true # [default: true] cache mise using GitHub's cache
38+
experimental: true # [default: false] enable experimental features
39+
# automatically write this mise.toml file
40+
working_directory: ..
41+
42+
- name: 🛠️ Initialize the test database
43+
run: mise start:tests
44+
45+
- run: pytest
3946
- run: ruff format --diff .
4047
- run: ruff check --output-format=github .
4148
- run: python -m django makemigrations --check --dry-run --noinput || (echo "⚠ Migration manquante ⚠"; exit 1)

0 commit comments

Comments
 (0)