Compare commits
1 Commits
c9b350da1e
...
7879d54958
| Author | SHA1 | Date | |
|---|---|---|---|
| 7879d54958 |
@@ -10,7 +10,6 @@ jobs:
|
||||
lint:
|
||||
name: Code Quality Checks
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 15
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -22,7 +21,9 @@ jobs:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install uv
|
||||
run: python -m pip install --upgrade pip uv
|
||||
run: |
|
||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
echo "$HOME/.local/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Create virtual environment
|
||||
run: uv venv
|
||||
@@ -30,7 +31,7 @@ jobs:
|
||||
- name: Activate virtual environment and install dependencies
|
||||
run: |
|
||||
source .venv/bin/activate
|
||||
uv sync --dev --frozen
|
||||
uv sync --dev
|
||||
|
||||
- name: Run Ruff linting
|
||||
run: |
|
||||
@@ -45,7 +46,6 @@ jobs:
|
||||
test:
|
||||
name: Run Tests
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:15.10
|
||||
@@ -81,7 +81,9 @@ jobs:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install uv
|
||||
run: python -m pip install --upgrade pip uv
|
||||
run: |
|
||||
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
echo "$HOME/.local/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Create virtual environment
|
||||
run: uv venv
|
||||
@@ -89,7 +91,7 @@ jobs:
|
||||
- name: Activate virtual environment and install dependencies
|
||||
run: |
|
||||
source .venv/bin/activate
|
||||
uv sync --dev --frozen
|
||||
uv sync --dev
|
||||
|
||||
- name: Wait for services to be ready
|
||||
run: |
|
||||
@@ -120,7 +122,6 @@ 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"
|
||||
pythonpath = ["src"]
|
||||
python_paths = ["src"]
|
||||
testpaths = ["tests"]
|
||||
addopts = [
|
||||
"--verbose",
|
||||
@@ -127,8 +127,6 @@ 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