From 2bef64e5f630787f655f835a088edb80628d426d Mon Sep 17 00:00:00 2001 From: scito Date: Tue, 3 Jan 2023 16:47:47 +0100 Subject: [PATCH] ci: no Pytest coverage comments for tags Create commit comment ##[error]HttpError: No commit found for SHA: 19b3368 ##[error]No commit found for SHA: 19b3368 --- .github/workflows/ci.yml | 7 ++++++- .github/workflows/ci_docker.yml | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 791248f..08a8c9f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,8 @@ name: tests # https://docs.github.com/de/actions/using-workflows/workflow-syntax-for-github-actions # https://docs.github.com/en/actions/using-workflows +# https://docs.github.com/en/actions/learn-github-actions/contexts +# https://docs.github.com/en/actions/learn-github-actions/expressions on: push: @@ -65,4 +67,7 @@ jobs: with: pytest-coverage-path: ./pytest-coverage.txt junitxml-path: ./pytest.xml - if: matrix.python-version == '3.x' && matrix.platform == 'ubuntu-latest' + if: | + matrix.python-version == '3.x' && matrix.platform == 'ubuntu-latest' + && !contains(github.ref, 'refs/tags/') + diff --git a/.github/workflows/ci_docker.yml b/.github/workflows/ci_docker.yml index 52e7042..a48c1b1 100644 --- a/.github/workflows/ci_docker.yml +++ b/.github/workflows/ci_docker.yml @@ -2,6 +2,8 @@ name: docker # https://docs.github.com/de/actions/using-workflows/workflow-syntax-for-github-actions # https://docs.github.com/en/actions/using-workflows +# https://docs.github.com/en/actions/learn-github-actions/contexts +# https://docs.github.com/en/actions/learn-github-actions/expressions # How to setup: https://event-driven.io/en/how_to_buid_and_push_docker_image_with_github_actions/ # How to run: https://aschmelyun.com/blog/using-docker-run-inside-of-github-actions/