Skip to content

Commit 396e848

Browse files
committed
updating workflows and django version
1 parent 590ac60 commit 396e848

9 files changed

Lines changed: 96 additions & 21 deletions

File tree

‎.github/workflows/bandit.yaml‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
name: Bandit Security Analysis
1+
name: Security Analysis (bandit)
22

3-
on: [push]
3+
on:
4+
push:
5+
branches-ignore:
6+
- main
47

58
jobs:
69
bandit:
@@ -11,5 +14,4 @@ jobs:
1114
with:
1215
src: "src"
1316
options: "-c pyproject.toml -r"
14-
pip_install_command: "pip install .[dev]"
15-
python_version: "3.11"
17+
python_version: "3.13"

‎.github/workflows/django.yaml‎

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Django Check
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
7+
jobs:
8+
django-check:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- uses: actions/setup-python@v4
15+
with:
16+
python-version: "3.13"
17+
18+
- name: Install dependencies
19+
run: |
20+
pip install -e .
21+
22+
- name: Run Django check
23+
env:
24+
DJANGO_SETTINGS_MODULE: core.settings
25+
DB_ENGINE: django.db.backends.sqlite3
26+
DB_NAME: test_db.sqlite3
27+
SECRET_KEY: test_secret_key
28+
DJANGO_DEBUG: False
29+
run: |
30+
cd src/django_project
31+
python manage.py check

‎.github/workflows/fawltydeps.yaml‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Dependency Consistency Check (fawltydeps)
2+
3+
on:
4+
pull_request:
5+
types: [opened, synchronize, reopened]
6+
7+
jobs:
8+
fawltydeps:
9+
runs-on: ubuntu-latest
10+
name: "fawltydeps"
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-python@v4
14+
with:
15+
python-version: "3.13"
16+
- name: Install dependencies
17+
run: |
18+
pip install -e .[dev]
19+
- name: Run fawltydeps
20+
run: |
21+
fawltydeps

‎.github/workflows/isort.yaml‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
name: isort
1+
name: Import Order Validation (isort)
22

3-
on: [push]
3+
on:
4+
push:
5+
branches-ignore:
6+
- main
47

58
jobs:
69
isort:
710
runs-on: ubuntu-latest
811
name: "isort"
12+
if: github.event.created == false # Skip if this push created a new branch
913
steps:
1014
- uses: davidslusser/actions_python_isort@v1.0.1
1115
with:
1216
src: "src/django_project"
1317
options: "--check --diff"
14-
python_version: "3.11"
18+
python_version: "3.13"

‎.github/workflows/mypy.yaml‎

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
1-
name: mypy
1+
name: Type Checking (mypy)
22

3-
on: [push]
3+
on:
4+
push:
5+
branches-ignore:
6+
- main
47

58
jobs:
69
mypy:
710
runs-on: ubuntu-latest
811
name: "mypy"
12+
if: github.event.created == false # Skip if this push created a new branch
913
steps:
1014
- uses: davidslusser/actions_python_mypy@v1.0.1
1115
with:
1216
src: "src"
13-
options: "-v"
17+
options: ""
1418
pip_install_command: "pip install -e .[dev]"
19+
python_version: "3.13"

‎.github/workflows/radon.yaml‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,15 @@
1-
name: radon
1+
name: Code Metrics Analysis (radon)
22

3-
on: [push]
3+
on:
4+
push:
5+
branches-ignore:
6+
- main
47

58
jobs:
69
radon:
710
runs-on: ubuntu-latest
811
name: "radon"
12+
if: github.event.created == false # Skip if this push created a new branch
913
steps:
1014
- uses: actions/checkout@v3
1115
- uses: davidslusser/actions_python_radon@v1.0.0

‎.github/workflows/ruff_format.yaml‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1-
name: ruff_format
1+
name: Code Consistency Check (ruff format)
22

3-
on: [push]
3+
on:
4+
push:
5+
branches-ignore:
6+
- main
47

58
jobs:
69
ruff:
710
runs-on: ubuntu-latest
811
name: "ruff"
12+
if: github.event.created == false # Skip if this push created a new branch
913
steps:
1014
- name: actions_python_ruff
1115
uses: davidslusser/actions_python_ruff@v1.0.3
1216
with:
1317
src: "src/django_project"
1418
command: ruff format src --check
15-
python_version: "3.11"
19+
python_version: "3.13"

‎.github/workflows/ruff_lint.yaml‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1-
name: ruff_lint
1+
name: Code Consistency Check (ruff format)
22

3-
on: [push]
3+
on:
4+
push:
5+
branches-ignore:
6+
- main
47

58
jobs:
69
ruff:
710
runs-on: ubuntu-latest
811
name: "ruff"
12+
if: github.event.created == false # Skip if this push created a new branch
913
steps:
1014
- name: actions_python_ruff
1115
uses: davidslusser/actions_python_ruff@v1.0.3
1216
with:
1317
src: "src/django_project"
14-
options: "-v"
15-
python_version: "3.11"
18+
command: ruff format src --check
19+
python_version: "3.13"

‎pyproject.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
dependencies = [
3-
"django~=5.2",
3+
"django~=5.2.12",
44
"django-braces",
55
"django-debug-toolbar",
66
"django-environ",
@@ -20,7 +20,7 @@ keywords = ["django"]
2020
license = {file = "LICENSE"}
2121
name = "my_django_project"
2222
readme = "README.md"
23-
requires-python = ">=3.10"
23+
requires-python = ">=3.13"
2424

2525

2626
[project.optional-dependencies]

0 commit comments

Comments
 (0)