aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/lint-test.yaml12
1 files changed, 7 insertions, 5 deletions
diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml
index 0bdcd98..f4ed94e 100644
--- a/.github/workflows/lint-test.yaml
+++ b/.github/workflows/lint-test.yaml
@@ -112,14 +112,11 @@ jobs:
cmd='coverage run -m unittest; coverage report -m'
docker exec snekbox_test /bin/bash -c "${cmd}"
- - name: print output
- run: echo "${{ steps.run_tests.outputs.started }}"
-
# Set-up a Python version to process the coverage reports
# Note: This step runs even if the test step failed to make
# sure we process the coverage reports.
- name: Setup python
- # if: always() && steps.run_tests.outputs.started == 'true'
+ if: always() && steps.run_tests.outputs.started == 'true'
id: python
uses: actions/setup-python@v2
with:
@@ -134,7 +131,7 @@ jobs:
# step in the check suite visible in the PR with a link to
# the job.
- name: Publish coverage report to coveralls.io
- # if: always() && steps.tests.outputs.started == 'true'
+ if: always() && steps.run_tests.outputs.started == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
@@ -147,6 +144,11 @@ jobs:
# the run, so it does not make sense to drop down to a completely
# fresh build environment in a new worker/runner.
+ - name: print output
+ run: |
+ echo "${{ github.ref }}"
+ echo "${{ github.event_name != 'pull_request' && github.ref == 'sebastiaan/backend/cache-docker-images' }}"
+
# Build the final production image and push it to GHCR, tagging it
# both with the short commit SHA and 'latest'. This step should use
# the cache that was just generated when we built the test container.