Skip to content

chore: rm TRASH-FILES.md #10

chore: rm TRASH-FILES.md

chore: rm TRASH-FILES.md #10

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
cache-dependency-path: frontend/package-lock.json
- name: Install dependencies
working-directory: ./frontend
run: npm ci
- name: Run linter
working-directory: ./frontend
run: npm run lint
- name: Build
working-directory: ./frontend
run: npm run build
- name: Run tests
working-directory: ./frontend
run: npm test -- --run || true # Allow to pass if no tests
backend:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
working-directory: ./backend
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest pytest-cov
- name: Run tests
working-directory: ./backend
run: |
pytest || true # Allow to pass if no tests
- name: Check code quality
working-directory: ./backend
run: |
pip install flake8
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics || true