Compare commits
1 Commits
7879d54958
...
c9b350da1e
| Author | SHA1 | Date | |
|---|---|---|---|
| c9b350da1e |
@@ -10,6 +10,7 @@ jobs:
|
||||
lint:
|
||||
name: Code Quality Checks
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -21,9 +22,7 @@ jobs:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install uv
|
||||
run: |
|
||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
echo "$HOME/.local/bin" >> $GITHUB_PATH
|
||||
run: python -m pip install --upgrade pip uv
|
||||
|
||||
- name: Create virtual environment
|
||||
run: uv venv
|
||||
@@ -31,7 +30,7 @@ jobs:
|
||||
- name: Activate virtual environment and install dependencies
|
||||
run: |
|
||||
source .venv/bin/activate
|
||||
uv sync --dev
|
||||
uv sync --dev --frozen
|
||||
|
||||
- name: Run Ruff linting
|
||||
run: |
|
||||
@@ -46,6 +45,7 @@ jobs:
|
||||
test:
|
||||
name: Run Tests
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:15.10
|
||||
@@ -81,9 +81,7 @@ jobs:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install uv
|
||||
run: |
|
||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
echo "$HOME/.local/bin" >> $GITHUB_PATH
|
||||
run: python -m pip install --upgrade pip uv
|
||||
|
||||
- name: Create virtual environment
|
||||
run: uv venv
|
||||
@@ -91,7 +89,7 @@ jobs:
|
||||
- name: Activate virtual environment and install dependencies
|
||||
run: |
|
||||
source .venv/bin/activate
|
||||
uv sync --dev
|
||||
uv sync --dev --frozen
|
||||
|
||||
- name: Wait for services to be ready
|
||||
run: |
|
||||
@@ -122,6 +120,7 @@ jobs:
|
||||
build:
|
||||
name: Build Docker Images
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
needs: [lint, test]
|
||||
|
||||
steps:
|
||||
|
||||
@@ -106,7 +106,7 @@ packages = ["src"]
|
||||
# ==================================================================================
|
||||
[tool.pytest.ini_options]
|
||||
DJANGO_SETTINGS_MODULE = "config.settings.test"
|
||||
python_paths = ["src"]
|
||||
pythonpath = ["src"]
|
||||
testpaths = ["tests"]
|
||||
addopts = [
|
||||
"--verbose",
|
||||
@@ -127,6 +127,8 @@ markers = [
|
||||
"serializers: marks tests for serializers",
|
||||
"services: marks tests for services",
|
||||
"factories: marks tests for factories",
|
||||
"network: marks tests that require network access",
|
||||
"e2e: marks end-to-end tests",
|
||||
]
|
||||
|
||||
filterwarnings = [
|
||||
|
||||
Reference in New Issue
Block a user