Skip to content

feat: add top rated section (#505) #902

feat: add top rated section (#505)

feat: add top rated section (#505) #902

name: Run Battery of Checks for Backend
on: [push, pull_request]
jobs:
battery:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
steps:
- uses: actions/[email protected]
- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
- name: Cache Poetry dependencies
uses: actions/[email protected]
with:
path: |
~/.cache/pypoetry
.venv
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Install dependencies
run: |
pip install poetry
poetry install --no-root --with dev
# - name: Ruff & Isort Check
# run: |
# poetry run ruff check ./backend
# poetry run isort --check-only ./backend
# - name: Type check
# run: poetry run pyright
# - name: Run Tests & Coverage
# run: poetry run pytest --cov=./backend --cov-report=xml
# - name: Upload Coverage Report to Codecov
# uses: codecov/[email protected]
# with:
# token: ${{ secrets.CODECOV_TOKEN }}
# file: ./coverage.xml