From 2701831f25b21992a6dd97012533da16b4354334 Mon Sep 17 00:00:00 2001 From: Markus Keil Date: Wed, 17 Jan 2024 16:55:27 +0100 Subject: [PATCH] add test report to output --- .github/workflows/docker-publish.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-publish.yaml b/.github/workflows/docker-publish.yaml index b7f7f5c..13db3f2 100644 --- a/.github/workflows/docker-publish.yaml +++ b/.github/workflows/docker-publish.yaml @@ -36,8 +36,13 @@ jobs: if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - name: Analysing the code with pylint run: | - pylint main.py + echo "# Test results" >> $GITHUB_STEP_SUMMARY + + echo "```" >> $GITHUB_STEP_SUMMARY + pylint main.py >> $GITHUB_STEP_SUMMARY + echo "```" >> $GITHUB_STEP_SUMMARY test: + needs: lint runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -54,6 +59,7 @@ jobs: run: | pytest build: + needs: test runs-on: ubuntu-latest permissions: contents: read