Skip to content

Minor CSS fixes

Minor CSS fixes #1289

Workflow file for this run

name: Python CI
on: [push, pull_request, workflow_dispatch]
env:
PYLINT_CONFIG: .pylintrc
YAPF_CONFIG: .style.yapf
ROSALUTION_KEY: not-a-real-key-but-need-to-resolve
jobs:
python-ci:
runs-on: ubuntu-22.04
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
strategy:
fail-fast: false
matrix:
python-version: ["3.11"]
defaults:
run:
working-directory: ./backend
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with Pylint
run: |
# Stop the build if there are Python linting errors
pylint --rcfile $PYLINT_CONFIG src tests
- name: Formatting with Pylint
run: |
yapf -r . --diff --style $YAPF_CONFIG
- name: Unit test with pytest
run: |
pytest --cov=src --cov-fail-under=80 --cov-branch --cov-report=term tests/unit/
- name: Integration test with pytest
run: |
pytest -s tests/integration