Compare commits
1 Commits
c9b350da1e
...
7879d54958
| Author | SHA1 | Date | |
|---|---|---|---|
| 7879d54958 |
@@ -10,7 +10,6 @@ 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
|
||||||
@@ -22,7 +21,9 @@ jobs:
|
|||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
|
|
||||||
- name: Install uv
|
- 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
|
- name: Create virtual environment
|
||||||
run: uv venv
|
run: uv venv
|
||||||
@@ -30,7 +31,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 --frozen
|
uv sync --dev
|
||||||
|
|
||||||
- name: Run Ruff linting
|
- name: Run Ruff linting
|
||||||
run: |
|
run: |
|
||||||
@@ -45,7 +46,6 @@ 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,7 +81,9 @@ jobs:
|
|||||||
python-version: '3.11'
|
python-version: '3.11'
|
||||||
|
|
||||||
- name: Install uv
|
- 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
|
- name: Create virtual environment
|
||||||
run: uv venv
|
run: uv venv
|
||||||
@@ -89,7 +91,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 --frozen
|
uv sync --dev
|
||||||
|
|
||||||
- name: Wait for services to be ready
|
- name: Wait for services to be ready
|
||||||
run: |
|
run: |
|
||||||
@@ -120,7 +122,6 @@ 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"
|
||||||
pythonpath = ["src"]
|
python_paths = ["src"]
|
||||||
testpaths = ["tests"]
|
testpaths = ["tests"]
|
||||||
addopts = [
|
addopts = [
|
||||||
"--verbose",
|
"--verbose",
|
||||||
@@ -127,8 +127,6 @@ 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