diff --git a/.github/workflows/development.yml b/.github/workflows/development.yml index 48ebd7c..d9e94fb 100644 --- a/.github/workflows/development.yml +++ b/.github/workflows/development.yml @@ -54,7 +54,7 @@ jobs: run: poetry install - name: Run Ruff (Linting) - run: poetry run ruff check ./src ./tests + run: poetry run ruff check bandit-security: runs-on: ubuntu-latest @@ -113,3 +113,14 @@ jobs: - name: Run Coverage (Report) run: poetry run coverage report -m --fail-under=50 + + - name: Run Coverage (HTML Report) + run: poetry run coverage html + + - name: Run Coverage (Codecov Report) + run: poetry run coverage xml + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 18063d8..df3d60b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -44,7 +44,7 @@ jobs: run: poetry run ruff format ./src ./tests - name: Run Ruff (Linting) - run: poetry run ruff check --exit-zero ./src ./tests + run: poetry run ruff check --exit-zero - name: Run Bandit (Security Analysis) run: poetry run bandit -c pyproject.toml -r src @@ -56,4 +56,4 @@ jobs: run: poetry run coverage run --source=src -m pytest - name: Run Coverage (Report) - run: poetry run coverage report -m --fail-under=50 + run: poetry run coverage report -m --fail-under=90 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index de00bc6..1a652a3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,7 +36,7 @@ jobs: run: poetry run ruff format ./src ./tests - name: Run Ruff (Linting) - run: poetry run ruff check ./src ./tests + run: poetry run ruff check - name: Run Bandit (Security Analysis) run: poetry run bandit -c pyproject.toml -r src @@ -48,7 +48,7 @@ jobs: run: poetry run coverage run --source=src -m pytest - name: Run Coverage (Report) - run: poetry run coverage report -m --fail-under=50 + run: poetry run coverage report -m --fail-under=90 publish: needs: build-and-test diff --git a/.gitignore b/.gitignore index 23a5527..49bddf7 100644 --- a/.gitignore +++ b/.gitignore @@ -50,7 +50,6 @@ coverage.xml *.py,cover .hypothesis/ .pytest_cache/ -.pytest_lock/ cover/ # Translations @@ -160,4 +159,8 @@ cython_debug/ # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. .idea/ -.idea/workspace.xml \ No newline at end of file +.idea/* +.idea/**/* +.idea/workspace.xml +.idea/dataSources.local.xml +.idea/workspace.* \ No newline at end of file diff --git a/.idea/pytest-lock.iml b/.idea/pytest-lock.iml index db87307..aad402c 100644 --- a/.idea/pytest-lock.iml +++ b/.idea/pytest-lock.iml @@ -1,8 +1,8 @@ - - + + + +