Skip to content

Sl 234 fix campaign editing page #35

Sl 234 fix campaign editing page

Sl 234 fix campaign editing page #35

Workflow file for this run

name: "Unit Tests"
on:
pull_request:
jobs:
pytest:
runs-on: ubuntu-latest
defaults:
run:
working-directory: api
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up uv
uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5
with:
enable-cache: true
- name: Set up Python
run: uv python install 3.12
- name: Install dependencies
run: uv sync --group dev
- name: Run tests
run: uv run pytest
- name: Upload coverage report
if: ${{ !env.ACT }}
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: api/coverage.xml
sonar:
name: SonarCloud Scan
runs-on: ubuntu-latest
needs: pytest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Download coverage report
uses: actions/download-artifact@v4
with:
name: coverage-report
path: api/
- name: SonarCloud Scan
uses: SonarSource/sonarqube-scan-action@2f77a1ec69fb1d595b06f35ab27e97605bdef703 # v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}