diff --git a/.github/workflows/workflow-code-coverage-python.yml b/.github/workflows/workflow-code-coverage-python.yml deleted file mode 100644 index 0150a01..0000000 --- a/.github/workflows/workflow-code-coverage-python.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Python Code Coverage - -on: - workflow_call: - -jobs: - code-coverage-python: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: '3.11' - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - pip install coverage pytest - - - name: Run tests with coverage - run: | - coverage run -m pytest - coverage report --show-missing --fail-under=60 \ No newline at end of file diff --git a/.github/workflows/workflow-lint-test-python.yml b/.github/workflows/workflow-lint-test-python.yml index d22b104..2508792 100644 --- a/.github/workflows/workflow-lint-test-python.yml +++ b/.github/workflows/workflow-lint-test-python.yml @@ -25,9 +25,10 @@ jobs: ruff --output-format=github --select=E9,F63,F7,F82 --target-version=py311 . # default set of ruff rules with GitHub Annotations ruff --output-format=github --target-version=py311 . - - name: Test with unittest + - name: Test and Coverage with unittest run: | - python -m unittest discover -s tests + python -m coverage run -m unittest discover -s tests + python -m coverage report --show-missing --fail-under=60 env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} LOUIS_DSN: ${{ secrets.LOUIS_DSN }}