Skip to content

Commit

Permalink
Preparations for new release (#424)
Browse files Browse the repository at this point in the history
* upgrade django and run django upgrade

* remove node dependencies and the css build process

* upgrade the docker-compose file to use the latest stable versions of redis(7) and postgresql(16)

* Make sure allauth continues to work. Fix tests

* add new github actions workflow for the automated tests

* another attempt at fixing the circleci stuff

* added required env variable for dependency to GA workflow

* upgrade critical js components

* Add notice to the readme
  • Loading branch information
dethos authored Sep 16, 2024
1 parent 55effe6 commit 8a3b0ae
Show file tree
Hide file tree
Showing 53 changed files with 314 additions and 11,066 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ jobs:
environment:
PIPENV_VENV_IN_PROJECT: true
DB_HOST: localhost
DB_USER: root
USERNAME: root
- image: circleci/postgres:9.6.2
DB_USER: postgres
- image: cimg/postgres:16.4
environment:
POSTGRES_USER: root
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: hawkpost_dev
steps:
- checkout
Expand Down
53 changes: 53 additions & 0 deletions .github/workflows/automated-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Automated Tests

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]

env:
DB_HOST: localhost
USERNAME: root

jobs:
unittest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]

services:
postgres:
image: postgres:16
env:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: hawkpost_dev
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
redis:
image: redis:7
ports:
- 6379:6379

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip pipenv
pipenv install --dev
- name: Collect Static assets
run: |
pipenv run python manage.py collectstatic --no-input
- name: Run Tests
run: |
pipenv run python manage.py test
149 changes: 0 additions & 149 deletions Gulpfile.js

This file was deleted.

7 changes: 4 additions & 3 deletions Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ django-extensions = "==3.2.1"
[packages]
django-dotenv = "==1.4.2"
"psycopg2-binary" = "==2.9.5"
django-allauth = "==0.50.0"
django-allauth = {version = "==64.1.0", extras=["socialaccount"]}
gnupg = "==2.3.1"
whitenoise = "==5.3.0"
gunicorn = "==20.1.0"
gunicorn = "==23.0.0"
raven = "==6.4.0"
django-timezone-field = "==4.2.3"
django-braces = "==1.15.0"
django-axes = "==5.40.1"
Django = "==3.2.19"
Django = "==4.2.15"
celery = {version = "==5.2.7", extras = ["redis"]}
requests = "==2.32.3"

[requires]
python_version = "3.9"
Loading

0 comments on commit 8a3b0ae

Please sign in to comment.