Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 31 additions & 6 deletions .github/workflows/server.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,55 @@
name: Server testing

on:
push:
branches: [ main ]
branches: [ '*' ] # Runs on any branch
pull_request:
branches: [ main ]
branches: [ '*' ]

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up python
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.9'
python-version: '3.11'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r server/requirements.txt
# - name: Run tests
# run: |
# python manage.py test

- name: Check for errors
if [ -f server/requirements.txt ]; then
python -m pip install --upgrade pip
pip install -r server/requirements.txt
else
echo "requirements.txt not found. Skipping dependency installation."
fi
- name: Run Django tests
run: |
if [ -f manage.py ]; then
python manage.py test
else
echo "manage.py not found. Skipping tests."
fi
- name: Run Django checks for errors
run: |
if [ -f manage.py ]; then
python manage.py check
else
echo "manage.py not found. Skipping Django checks."
fi
- name: Lint code
run: |
python manage.py check
python manage.py check
pip install flake8
flake8 .
Binary file modified frontend/public/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/src/assets/image/b1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified frontend/src/assets/image/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading