Skip to content

Commit d46efa4

Browse files
author
bakhee
committed
feat: update ci
1 parent bf54594 commit d46efa4

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

.github/workflows/app-testing.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,40 +56,45 @@ jobs:
5656
- name: Checkout Code
5757
uses: actions/checkout@v4
5858

59-
# 2. Set up the Python environment
59+
# 2. Copy .env.example to .env
60+
- name: Copy .env.example to .env
61+
run: |
62+
сp .env.example .env
63+
64+
# 3. Set up the Python environment
6065
- name: Set up Python ${{ matrix.python-version }}
6166
uses: actions/setup-python@v5
6267
with:
6368
python-version: ${{ matrix.python-version }}
6469

65-
# 3. Install uv
70+
# 4. Install uv
6671
- name: Install uv
6772
uses: astral-sh/setup-uv@v3
6873

69-
# 4. Install python
74+
# 5. Install python
7075
- name: Set up Python
7176
run: uv python install
7277

73-
# 5. Install the project
78+
# 6. Install the project
7479
- name: Install the project
7580
run: uv sync --all-extras --dev
7681

77-
# 6. Install missing stub packages
82+
# 7. Install missing stub packages
7883
- name: Install missing type stubs
7984
run: |
8085
uv run mypy --install-types --non-interactive .
8186
82-
# 7. Run Ruff Linter and show all errors
87+
# 8. Run Ruff Linter and show all errors
8388
- name: Run Ruff Linter
8489
run: |
8590
echo "${{ needs.check.outputs.changed_files }}" | xargs uv run ruff check --output-format=github --config=pyproject.toml
8691
87-
# 6. Run Mypy Type Checking and show all errors
92+
# 9. Run Mypy Type Checking and show all errors
8893
- name: Run Mypy Type Checking
8994
run: |
9095
echo "${{ needs.check.outputs.changed_files }}" | xargs uv run mypy --config-file=pyproject.toml
9196
92-
# 7. Run Pytest
97+
# 10. Run Pytest
9398
- name: Run Pytest
9499
run: |
95100
uv run pytest --maxfail=10 --disable-warnings --tb=short

src/core/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ class DefaultSettings(BaseSettings):
1414
class PythonVersionSettings(DefaultSettings):
1515
"""Class to store Python version settings."""
1616

17-
min_major: int = Field(default=3, description="Minimum major version")
18-
min_minor: int = Field(default=9, description="Minimum minor version")
17+
min_major: int = Field(..., description="Minimum major version")
18+
min_minor: int = Field(..., description="Minimum minor version")
1919

2020
model_config = SettingsConfigDict(env_prefix="PYTHON_VER_")
2121

0 commit comments

Comments
 (0)