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