Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Bump word-wrap from 1.2.3 to 1.2.4 in /frontend #595

Bump word-wrap from 1.2.3 to 1.2.4 in /frontend

Bump word-wrap from 1.2.3 to 1.2.4 in /frontend #595

Workflow file for this run

name: Linting & Testing
on:
pull_request:
branches: [ main, development ]
jobs:
backend-linting:
runs-on: [ self-hosted, ci ]
env:
SRC: "drtrottoir"
defaults:
run:
working-directory: backend
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -r requirements-dev.txt
- name: Run Black
run: black --check $SRC
- name: Run Flake8
run: flake8 $SRC
- name: Run Isort
run: isort --check $SRC
- name: Run Mypy
run: mypy $SRC
frontend-linting:
runs-on: [ self-hosted, ci ]
defaults:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Run linter
run: npm run lint
backend-testing:
runs-on: [ self-hosted, no-parallel-1 ]
services:
postgres:
image: postgres:15-alpine
env:
POSTGRES_DB: devdb
POSTGRES_USER: hello_django
POSTGRES_PASSWORD: hello_django
ports:
- 5432:5432
env:
SRC: "drtrottoir"
SECRET_KEY: devsecretkey
DEBUG: 1
DB_HOST: localhost
DB_NAME: devdb
DB_USER: hello_django
DB_PASS: hello_django
DATABASE: postgres
defaults:
run:
working-directory: backend
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -r requirements-dev.txt
- name: Wait for database to be ready
run: python manage.py wait_for_db
- name: Run tests
run: pytest --cov --cov-config=.coveragerc $SRC/tests
frontend-testing:
runs-on: [ self-hosted, ci ]
defaults:
run:
working-directory: frontend
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Run Jest
run: npm run test
- name: Try building
run: npm run build