Update test.yml #234
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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/[email protected] | |
env: | |
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | |
- name: run black | |
run: black --check --verbose src | |
- uses: fsfe/reuse-action@v5 |