Skip to content

Fixed pep8 errors.

Fixed pep8 errors. #9

Workflow file for this run

name: Django CI
on:
push:
branches: [ "feature/github-action" ]
pull_request:
branches: [ "develop" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install OpenLDAP dependencies
run: sudo apt install libsasl2-dev python3-dev libldap2-dev libssl-dev
- name: Generate Swedish locale
run: |
sudo locale-gen sv_FI.UTF-8
sudo update-locale
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10.12"
- name: Install latest pip
run: python -m pip install --upgrade pip
- name: Install python dependencies
run: pip install -r requirements.txt
- name: Apply migrations
run: python teknologr/manage.py migrate
- name: Run Tests
run: python teknologr/manage.py test teknologr