Skip to content

pip(deps): update uvicorn requirement from ==0.35.* to ==0.37.* in /b… #299

pip(deps): update uvicorn requirement from ==0.35.* to ==0.37.* in /b…

pip(deps): update uvicorn requirement from ==0.35.* to ==0.37.* in /b… #299

Workflow file for this run

name: Build and Test
on:
push:
branches: [ main, mvp ]
paths:
- 'backend/**'
- '.github/workflows/build.yml'
- 'requirements*.txt'
pull_request:
branches: [ main, mvp ]
paths:
- 'backend/**'
- '.github/workflows/build.yml'
- 'requirements*.txt'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.9'
- name: Install dependencies
run: |
cd backend
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements-dev.txt
- name: Run tests and linting
run: |
cd backend
bash scripts/format_and_lint.sh
- name: Store coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: backend/coverage.xml
sonarcloud:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Download coverage report
uses: actions/download-artifact@v5
with:
name: coverage-report
path: backend
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}