diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3ac79df4..83749d11 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -43,16 +43,16 @@ jobs: python -m isort ebcc/ --diff --check-only --verbose python -m flake8 ebcc/ --verbose python -m mypy ebcc/ --verbose - #- name: Run unit tests with coverage - # run: | - # python -m pip install pytest pytest-cov - # pytest --cov ebcc/ - # if: matrix.coverage - #- name: Run unit tests - # run: | - # python -m pip install pytest - # pytest - # if: ${{ ! matrix.coverage }} + - name: Run unit tests with coverage + run: | + python -m pip install pytest pytest-cov + pytest --cov ebcc/ + if: matrix.coverage + - name: Run unit tests + run: | + python -m pip install pytest + pytest + if: ${{ ! matrix.coverage }} - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 with: @@ -61,4 +61,4 @@ jobs: if: matrix.coverage - name: Deploy documentation run: mkdocs gh-deploy --force -f docs/mkdocs.yaml - if: matrix.documentation #&& github.ref == 'refs/heads/master' + if: matrix.documentation && github.ref == 'refs/heads/master'