This repository has been archived by the owner on Feb 5, 2024. It is now read-only.
Bump semver from 6.3.0 to 6.3.1 in /frontend #594
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |