From 3f4187bd6b60c6106a005b6c505f9fbc2caa0e75 Mon Sep 17 00:00:00 2001 From: patnr Date: Tue, 2 Jul 2024 13:16:30 +0200 Subject: [PATCH] Fix coverage --- .github/workflows/tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 7f50ff7c..04404164 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -49,19 +49,19 @@ jobs: - name: Run tests run: | - if [[ '$JOBTYPE' == 'lint' ]]; then + if [[ "$JOBTYPE" == "lint" ]]; then # Run flake8 via pre-commit instead. #- flake8 . # Use --exit-zero to ignore failure pre-commit install pre-commit run --all-files - elif [[ '$JOBTYPE' == 'coverage' ]]; then + elif [[ "$JOBTYPE" == "coverage" ]]; then pytest tests --ignore=dapper/mods/QG --cov=dapper --cov-report term-missing else pytest tests fi - name: Publish coverage to coveralls.io - if: ${{ env.JOBTYPE == 'coverage' }} + if: ${{ env.JOBTYPE == coverage }} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: coveralls --service=github