Skip to content

Rebase and restructure code + improvement #26

Rebase and restructure code + improvement

Rebase and restructure code + improvement #26

Workflow file for this run

name: Django CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
env:
SECRET_KEY: ${{ secrets.SECRET_KEY }}
API_KEY: ${{ secrets.API_KEY }}
NEWS_API_KEY: ${{ secrets.NEWS_API_KEY }}
WEATHER_API_KEY: ${{ secrets.WEATHER_API_KEY }}
WEATHER_API_KEY_2: ${{ secrets.WEATHER_API_KEY_2 }}
strategy:
max-parallel: 4
matrix:
python-version: [3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libldap2-dev libsasl2-dev
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install --no-cache-dir -r requirements.txt
- name: Collect static files
run: |
cd backend
python manage.py collectstatic --no-input
- name: Run Tests
run: |
cd backend
python manage.py test