Skip to content

Feature/mssdk1 12

Feature/mssdk1 12 #44

name: Unit Tests
on:
pull_request:
branches: [ "main", "develop" ]
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for better relevancy of analysis
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: "3.12"
cache: 'pip'
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y python3-dev libsqlite3-dev
make install-dev
make install
- name: Run unit tests with coverage
run: make test-unit
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}