Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/development' into single-course-…
Browse files Browse the repository at this point in the history
…view
  • Loading branch information
BramMeir committed Apr 16, 2024
2 parents 4d14836 + 8ef24ce commit d4bec4b
Show file tree
Hide file tree
Showing 45 changed files with 545 additions and 1,227 deletions.
15 changes: 8 additions & 7 deletions .dev.env
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
PUID=1000
PGID=1000
TZ=Europe/Brussels
FIXTURE=small

# File directories
DATA_DIR="./data"
Expand All @@ -14,11 +15,11 @@ REDIS_IP=192.168.90.10
REDIS_PORT=6379

# Django
DJANGO_SECRET_KEY="" # Set to a random string
DJANGO_DEBUG=True # Django debug mode
DJANGO_DOMAIN_NAME=localhost # Domain name for the Django server
DJANGO_CAS_URL_PREFIX="" # URL prefix for the CAS server. Should be empty for development
DJANGO_CAS_PORT=8080 # Port for the CAS server. Should be 8080 if DJANGO_DOMAIN_NAME is localhost
DJANGO_DB_ENGINE=django.db.backends.sqlite3 # Database engine
DJANGO_REDIS_HOST=${REDIS_IP} # Redis configuration
DJANGO_SECRET_KEY=""
DJANGO_DEBUG=True
DJANGO_DOMAIN_NAME=localhost
DJANGO_CAS_URL_PREFIX=""
DJANGO_CAS_PORT=8080
DJANGO_DB_ENGINE="django.db.backends.sqlite3"
DJANGO_REDIS_HOST=${REDIS_IP}
DJANGO_REDIS_PORT=${REDIS_PORT}
9 changes: 4 additions & 5 deletions .github/workflows/backend-linting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,18 @@ on:

jobs:
test:
runs-on: self-hosted
runs-on: ubuntu-latest
steps:
- name: Add permission to remove contents of previous action script
run: echo ${{ secrets.SUDO }} | sudo -S chown -R $USER:$USER /home/selab2/actions-runner/_work/UGent-7/
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
run: |
cd backend
python -m pip install --upgrade pip
pip install poetry
poetry install --directory=./backend
poetry install
- name: Execute linting checks
run: flake8 --config ./backend/.flake8 ./backend
run: cd backend; poetry run flake8 --config .flake8
6 changes: 2 additions & 4 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ on:

jobs:
test:
runs-on: self-hosted
runs-on: ubuntu-latest
steps:
- name: Add permission to remove contents of previous action script
run: echo ${{ secrets.SUDO }} | sudo -S chown -R $USER:$USER /home/selab2/actions-runner/_work/UGent-7/
- uses: actions/checkout@v4
- name: Run tests
run: echo ${{ secrets.SUDO }} | sudo -S ./test.sh -c
run: ./test.sh -c
16 changes: 8 additions & 8 deletions .prod.env
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@ POSTGRES_IP=192.168.90.9
POSTGRES_PORT=5432
POSTGRES_DB=selab
POSTGRES_USER=selab_user
POSTGRES_PASSWORD="" # Set to desired password
POSTGRES_PASSWORD=""

# Redis
REDIS_IP=192.168.90.10
REDIS_PORT=6379

# Django
DJANGO_SECRET_KEY="" # Set to a random string
DJANGO_DEBUG=False # Django debug mode
DJANGO_DOMAIN_NAME="" # Domain name for the Django server
DJANGO_CAS_URL_PREFIX="" # URL prefix for the CAS server
DJANGO_CAS_PORT="" # Port for the CAS server
DJANGO_DB_ENGINE=django.db.backends.postgresql # Database engine configuration
DJANGO_SECRET_KEY=""
DJANGO_DEBUG=False
DJANGO_DOMAIN_NAME=""
DJANGO_CAS_URL_PREFIX=""
DJANGO_CAS_PORT=""
DJANGO_DB_ENGINE=django.db.backends.postgresql
DJANGO_DB_NAME=${POSTGRES_DB}
DJANGO_DB_USER=${POSTGRES_USER}
DJANGO_DB_PASSWORD=${POSTGRES_PASSWORD}
DJANGO_DB_HOST=${POSTGRES_IP}
DJANGO_DB_PORT=${POSTGRES_PORT}
DJANGO_REDIS_HOST=${REDIS_IP} # Redis configuration
DJANGO_REDIS_HOST=${REDIS_IP}
DJANGO_REDIS_PORT=${REDIS_PORT}
10 changes: 0 additions & 10 deletions backend/api/fixtures/assistants.yaml

This file was deleted.

16 changes: 0 additions & 16 deletions backend/api/fixtures/checks.yaml

This file was deleted.

87 changes: 0 additions & 87 deletions backend/api/fixtures/courses.yaml

This file was deleted.

46 changes: 0 additions & 46 deletions backend/api/fixtures/groups.yaml

This file was deleted.

1 change: 1 addition & 0 deletions backend/api/fixtures/large/large.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions backend/api/fixtures/medium/medium.json

Large diffs are not rendered by default.

37 changes: 0 additions & 37 deletions backend/api/fixtures/projects.yaml

This file was deleted.

Loading

0 comments on commit d4bec4b

Please sign in to comment.