Compare commits

...

2 Commits

Author SHA1 Message Date
981d6f4e27 excluded tests folder from linting 2026-02-01 19:58:58 +01:00
d70aee8b10 Fixed pytest coverage report project name bug 2026-02-01 19:57:56 +01:00
2 changed files with 3 additions and 4 deletions

View File

@ -2,7 +2,7 @@ name: CI/CD Pipeline
on: on:
push: push:
branches: [main] branches: ['**']
tags: ['v*'] tags: ['v*']
pull_request: pull_request:
@ -27,8 +27,7 @@ jobs:
run: poetry run ruff check . run: poetry run ruff check .
- name: Run Tests with Coverage - name: Run Tests with Coverage
run: poetry run pytest --cov=my_project --cov-report=term-missing --cov-fail-under=80 run: poetry run pytest --cov --cov-report=term-missing --cov-fail-under=80
publish-container: publish-container:
needs: test-and-lint needs: test-and-lint
if: startsWith(github.ref, 'refs/tags/v') if: startsWith(github.ref, 'refs/tags/v')

View File

@ -22,7 +22,7 @@ build-backend = "poetry.core.masonry.api"
[tool.ruff] [tool.ruff]
line-length = 88 line-length = 88
target-version = "py314" target-version = "py314"
exclude = ["tests"]
[tool.ruff.lint] [tool.ruff.lint]
# E/F: Errores base, I: Imports (isort), D: Docstrings # E/F: Errores base, I: Imports (isort), D: Docstrings
select = ["E", "F", "I", "D"] select = ["E", "F", "I", "D"]