From 0d7024cce4881aa3c186321c194a48614caa60f5 Mon Sep 17 00:00:00 2001 From: Ryan Frederich Date: Mon, 19 Aug 2024 12:23:14 -0700 Subject: [PATCH] pytest changes test --- .github/workflows/pytest.yml | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 1e684ec..8b4947a 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -39,19 +39,22 @@ jobs: poetry config installer.max-workers 10 poetry install --no-interaction --no-ansi - - name: Run tests - run: | - poetry run python -m pytest --junitxml=pytest.xml --cov-report=term-missing --cov=src tests/ | tee pytest-coverage.txt + # - name: Run tests + # run: | + # poetry run python -m pytest --junitxml=pytest.xml --cov-report=term-missing --cov=src tests/ | tee pytest-coverage.txt + + - name: Run tests and collect coverage + run: poetry run pytest --cov=./src --cov-report=xml - name: Upload results to Codecov uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} - - name: Pytest coverage comment - if: matrix.os == 'ubuntu-latest' - continue-on-error: true - uses: MishaKav/pytest-coverage-comment@v1.1.47 - with: - pytest-coverage-path: ./pytest-coverage.txt - junitxml-path: ./pytest.xml \ No newline at end of file + # - name: Pytest coverage comment + # if: matrix.os == 'ubuntu-latest' + # continue-on-error: true + # uses: MishaKav/pytest-coverage-comment@v1.1.47 + # with: + # pytest-coverage-path: ./pytest-coverage.txt + # junitxml-path: ./pytest.xml \ No newline at end of file