From cdd9d6f2885c78e68adc8756c82f88c8ffdeb788 Mon Sep 17 00:00:00 2001 From: KEFFA Date: Mon, 31 Aug 2026 15:02:50 +0300 Subject: [PATCH 1/6] Ignore .envs --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 063967c..ec190e8 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ __pycache__/ # Virtual environments .venv/ +.env/ venv/ env/ ENV/ From a2ea9d986198f3e6e953e8585ea87f64bec1bd50 Mon Sep 17 00:00:00 2001 From: KEFFA Date: Mon, 31 Aug 2026 15:03:46 +0300 Subject: [PATCH 2/6] Add Django backend CI pipeline --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..116fb8b --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: Backend CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + ci: + name: Django CI + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + cache: pip + + - name: Install dependencies + run: pip install -r requirements.txt + + - name: Check Django configuration + run: python manage.py check + + - name: Check migrations + run: python manage.py makemigrations --check --dry-run + + - name: Run tests + run: python manage.py test \ No newline at end of file From 8d143991cc9bc6968a06c92f84240773b16c57d9 Mon Sep 17 00:00:00 2001 From: KEFFA Date: Mon, 31 Aug 2026 15:15:53 +0300 Subject: [PATCH 3/6] Fix Django CI environment configuration --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 116fb8b..74b4fb7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,6 +13,9 @@ jobs: name: Django CI runs-on: ubuntu-latest + env: + SECRET_KEY: ci-test-secret-key + steps: - name: Checkout repository uses: actions/checkout@v4 From d540e456aeddbf063a63e2299062410d83918cc2 Mon Sep 17 00:00:00 2001 From: KEFFA Date: Mon, 31 Aug 2026 15:28:37 +0300 Subject: [PATCH 4/6] Add MySQL service to Django CI --- .github/workflows/ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 74b4fb7..21eab57 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,27 @@ jobs: env: SECRET_KEY: ci-test-secret-key + DB_NAME: task_manager + DB_USER: task_manager_user + DB_PASSWORD: ci-test-db-password + DB_HOST: 127.0.0.1 + DB_PORT: 3306 + + services: + mysql: + image: mysql:8.0 + env: + MYSQL_DATABASE: task_manager + MYSQL_USER: task_manager_user + MYSQL_PASSWORD: ci-test-db-password + MYSQL_ROOT_PASSWORD: ci-test-root-password + ports: + - 3306:3306 + options: >- + --health-cmd="mysqladmin ping -h 127.0.0.1 -uroot -pci-test-root-password" + --health-interval=10s + --health-timeout=5s + --health-retries=5 steps: - name: Checkout repository From 3881af2c3b3fd03abf9bedff083cc8114317d4ba Mon Sep 17 00:00:00 2001 From: KEFFA Date: Mon, 31 Aug 2026 15:36:55 +0300 Subject: [PATCH 5/6] Update dependencies in requirements.txt --- requirements.txt | 170 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 170 insertions(+) diff --git a/requirements.txt b/requirements.txt index 5932357..4f24661 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,12 +1,182 @@ +absl-py==2.4.0 +amqp==5.3.1 +annotated-types==0.7.0 +anyio==4.13.0 +apturl==0.5.2 asgiref==3.10.0 +astunparse==1.6.3 +async-timeout==5.0.1 +attrs==26.1.0 +bcrypt==3.2.0 +billiard==4.2.4 +blinker==1.9.0 +Brlapi==0.8.3 +cachetools==6.2.6 +celery==5.4.0 +certifi==2026.6.17 +cffi==2.0.0 +chardet==4.0.0 +charset-normalizer==3.4.7 +click==8.3.2 +click-didyoumean==0.3.1 +click-plugins==1.1.1.2 +click-repl==0.3.0 +colorama==0.4.4 +command-not-found==0.3 +cryptography==3.4.8 +cupshelpers==1.0 +dbus-python==1.2.18 +defer==1.0.6 +deprecation==2.1.0 +distro==1.7.0 +distro-info==1.1+ubuntu0.2 Django==5.2.7 django-cors-headers==4.9.0 +django-filter==24.2 djangorestframework==3.16.1 djangorestframework_simplejwt==5.5.1 dotenv==0.9.9 +drf-spectacular==0.27.2 +duplicity==0.8.21 +et_xmlfile==2.0.0 +exceptiongroup==1.3.1 +fasteners==0.14.1 +Flask==3.1.0 +flask-cors==5.0.1 +flatbuffers==25.12.19 +fsspec==2026.3.0 +future==0.18.2 +gast==0.7.0 +google-pasta==0.2.0 +grpcio==1.80.0 gunicorn==23.0.0 +h11==0.16.0 +h2==4.3.0 +h5py==3.16.0 +hpack==4.1.0 +httpcore==1.0.9 +httplib2==0.20.2 +httpx==0.28.1 +hyperframe==6.1.0 +idna==3.3 +importlib-metadata==4.6.4 +inflection==0.5.1 +itsdangerous==2.2.0 +jeepney==0.7.1 +Jinja2==3.1.6 +joblib==1.5.3 +jsonschema==4.26.0 +jsonschema-specifications==2025.9.1 +keras==3.12.1 +keyring==23.5.0 +kombu==5.6.2 +language-selector==0.1 +launchpadlib==1.10.16 +lazr.restfulclient==0.14.4 +lazr.uri==1.0.6 +libclang==18.1.1 +lockfile==0.12.2 +louis==3.20.0 +macaroonbakery==1.3.1 +Mako==1.1.3 +Markdown==3.10.2 +markdown-it-py==4.0.0 +MarkupSafe==3.0.3 +mdurl==0.1.2 +ml_dtypes==0.5.4 +mmh3==5.2.1 +monotonic==1.6 +more-itertools==8.10.0 +multidict==6.7.1 +namex==0.1.0 +netifaces==0.11.0 +numpy==2.2.6 +oauthlib==3.2.0 +olefile==0.46 +openpyxl==3.1.5 +opt_einsum==3.4.0 +optree==0.19.0 packaging==25.0 +pandas==2.3.3 +paramiko==2.9.3 +pexpect==4.8.0 +pillow==10.4.0 +postgrest==2.28.3 +prompt_toolkit==3.0.53 +propcache==0.4.1 +protobuf==7.34.1 +psycopg2-binary==2.9.10 +ptyprocess==0.7.0 +pycairo==1.20.1 +pycparser==3.0 +pycups==2.0.1 +pydantic==2.12.5 +pydantic_core==2.41.5 +Pygments==2.20.0 +PyGObject==3.42.1 +pyiceberg==0.11.1 PyJWT==2.10.1 +pymacaroons==0.13.0 PyMySQL==1.1.2 +PyNaCl==1.5.0 +pyparsing==3.3.2 +pypng==0.20220715.0 +pyRFC3339==1.1 +pyroaring==1.0.4 +python-apt==2.4.0+ubuntu4.1 +python-dateutil==2.9.0.post0 +python-debian==0.1.43+ubuntu1.1 +python-decouple==3.8 python-dotenv==1.1.1 +pytz==2022.1 +pyxdg==0.27 +PyYAML==5.4.1 +qrcode==7.4.2 +realtime==2.28.3 +redis==5.0.7 +referencing==0.37.0 +reportlab==4.2.2 +requests==2.34.2 +resend==2.32.2 +rich==14.3.3 +rpds-py==0.30.0 +scikit-learn==1.6.1 +scipy==1.15.3 +SecretStorage==3.3.1 +six==1.16.0 sqlparse==0.5.3 +storage3==2.28.3 +StrEnum==0.4.15 +strictyaml==1.7.3 +supabase==2.28.3 +supabase-auth==2.28.3 +supabase-functions==2.28.3 +systemd-python==234 +tenacity==9.1.4 +tensorboard==2.20.0 +tensorboard-data-server==0.7.2 +tensorflow==2.20.0 +termcolor==3.3.0 +threadpoolctl==3.6.0 +typing-inspection==0.4.2 +typing_extensions==4.15.0 +tzdata==2026.1 +ubuntu-drivers-common==0.0.0 +ubuntu-pro-client==8001 +ufw==0.36.1 +unattended-upgrades==0.1 +uritemplate==4.2.0 +urllib3==1.26.5 +usb-creator==0.3.7 +vine==5.1.0 +wadllib==1.3.6 +wcwidth==0.8.2 +websockets==15.0.1 +Werkzeug==3.1.8 +wrapt==2.1.2 +wxPython==4.0.7 +xdg==5 +xkit==0.0.0 +yarl==1.23.0 +zipp==1.0.0 +zstandard==0.25.0 From ce0f8717d623955f10374cf12c79ed22ae24db4b Mon Sep 17 00:00:00 2001 From: KEFFA Date: Mon, 31 Aug 2026 15:47:56 +0300 Subject: [PATCH 6/6] Update dependencies in requirements.txt --- requirements.txt | 177 +---------------------------------------------- 1 file changed, 3 insertions(+), 174 deletions(-) diff --git a/requirements.txt b/requirements.txt index 4f24661..08a9ab8 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,182 +1,11 @@ -absl-py==2.4.0 -amqp==5.3.1 -annotated-types==0.7.0 -anyio==4.13.0 -apturl==0.5.2 asgiref==3.10.0 -astunparse==1.6.3 -async-timeout==5.0.1 -attrs==26.1.0 -bcrypt==3.2.0 -billiard==4.2.4 -blinker==1.9.0 -Brlapi==0.8.3 -cachetools==6.2.6 -celery==5.4.0 -certifi==2026.6.17 -cffi==2.0.0 -chardet==4.0.0 -charset-normalizer==3.4.7 -click==8.3.2 -click-didyoumean==0.3.1 -click-plugins==1.1.1.2 -click-repl==0.3.0 -colorama==0.4.4 -command-not-found==0.3 -cryptography==3.4.8 -cupshelpers==1.0 -dbus-python==1.2.18 -defer==1.0.6 -deprecation==2.1.0 -distro==1.7.0 -distro-info==1.1+ubuntu0.2 Django==5.2.7 django-cors-headers==4.9.0 -django-filter==24.2 djangorestframework==3.16.1 -djangorestframework_simplejwt==5.5.1 -dotenv==0.9.9 -drf-spectacular==0.27.2 -duplicity==0.8.21 -et_xmlfile==2.0.0 -exceptiongroup==1.3.1 -fasteners==0.14.1 -Flask==3.1.0 -flask-cors==5.0.1 -flatbuffers==25.12.19 -fsspec==2026.3.0 -future==0.18.2 -gast==0.7.0 -google-pasta==0.2.0 -grpcio==1.80.0 +djangorestframework-simplejwt==5.5.1 gunicorn==23.0.0 -h11==0.16.0 -h2==4.3.0 -h5py==3.16.0 -hpack==4.1.0 -httpcore==1.0.9 -httplib2==0.20.2 -httpx==0.28.1 -hyperframe==6.1.0 -idna==3.3 -importlib-metadata==4.6.4 -inflection==0.5.1 -itsdangerous==2.2.0 -jeepney==0.7.1 -Jinja2==3.1.6 -joblib==1.5.3 -jsonschema==4.26.0 -jsonschema-specifications==2025.9.1 -keras==3.12.1 -keyring==23.5.0 -kombu==5.6.2 -language-selector==0.1 -launchpadlib==1.10.16 -lazr.restfulclient==0.14.4 -lazr.uri==1.0.6 -libclang==18.1.1 -lockfile==0.12.2 -louis==3.20.0 -macaroonbakery==1.3.1 -Mako==1.1.3 -Markdown==3.10.2 -markdown-it-py==4.0.0 -MarkupSafe==3.0.3 -mdurl==0.1.2 -ml_dtypes==0.5.4 -mmh3==5.2.1 -monotonic==1.6 -more-itertools==8.10.0 -multidict==6.7.1 -namex==0.1.0 -netifaces==0.11.0 -numpy==2.2.6 -oauthlib==3.2.0 -olefile==0.46 -openpyxl==3.1.5 -opt_einsum==3.4.0 -optree==0.19.0 -packaging==25.0 -pandas==2.3.3 -paramiko==2.9.3 -pexpect==4.8.0 -pillow==10.4.0 -postgrest==2.28.3 -prompt_toolkit==3.0.53 -propcache==0.4.1 -protobuf==7.34.1 -psycopg2-binary==2.9.10 -ptyprocess==0.7.0 -pycairo==1.20.1 -pycparser==3.0 -pycups==2.0.1 -pydantic==2.12.5 -pydantic_core==2.41.5 -Pygments==2.20.0 -PyGObject==3.42.1 -pyiceberg==0.11.1 PyJWT==2.10.1 -pymacaroons==0.13.0 PyMySQL==1.1.2 -PyNaCl==1.5.0 -pyparsing==3.3.2 -pypng==0.20220715.0 -pyRFC3339==1.1 -pyroaring==1.0.4 -python-apt==2.4.0+ubuntu4.1 -python-dateutil==2.9.0.post0 -python-debian==0.1.43+ubuntu1.1 -python-decouple==3.8 +cryptography==3.4.8 python-dotenv==1.1.1 -pytz==2022.1 -pyxdg==0.27 -PyYAML==5.4.1 -qrcode==7.4.2 -realtime==2.28.3 -redis==5.0.7 -referencing==0.37.0 -reportlab==4.2.2 -requests==2.34.2 -resend==2.32.2 -rich==14.3.3 -rpds-py==0.30.0 -scikit-learn==1.6.1 -scipy==1.15.3 -SecretStorage==3.3.1 -six==1.16.0 -sqlparse==0.5.3 -storage3==2.28.3 -StrEnum==0.4.15 -strictyaml==1.7.3 -supabase==2.28.3 -supabase-auth==2.28.3 -supabase-functions==2.28.3 -systemd-python==234 -tenacity==9.1.4 -tensorboard==2.20.0 -tensorboard-data-server==0.7.2 -tensorflow==2.20.0 -termcolor==3.3.0 -threadpoolctl==3.6.0 -typing-inspection==0.4.2 -typing_extensions==4.15.0 -tzdata==2026.1 -ubuntu-drivers-common==0.0.0 -ubuntu-pro-client==8001 -ufw==0.36.1 -unattended-upgrades==0.1 -uritemplate==4.2.0 -urllib3==1.26.5 -usb-creator==0.3.7 -vine==5.1.0 -wadllib==1.3.6 -wcwidth==0.8.2 -websockets==15.0.1 -Werkzeug==3.1.8 -wrapt==2.1.2 -wxPython==4.0.7 -xdg==5 -xkit==0.0.0 -yarl==1.23.0 -zipp==1.0.0 -zstandard==0.25.0 +sqlparse==0.5.3 \ No newline at end of file