Skip to content

chore: cache trivy db #96

chore: cache trivy db

chore: cache trivy db #96

Workflow file for this run

# SPDX-FileCopyrightText: 2024 PNED G.I.E.
#
# SPDX-License-Identifier: Apache-2.0
name: Run Tests
on: push
jobs:
test:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: install dependencies
run: pip install -r dev-requirements.txt && pip install -r requirements.txt
- name: run pytest
run: pytest --cov=. --cov-report xml:coverage.xml
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@v3
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: run black
run: black --check --verbose src
- uses: fsfe/reuse-action@v4