aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2021-01-09 13:34:57 -0800
committerGravatar MarkKoz <[email protected]>2021-01-09 19:18:02 -0800
commitdd00b84df093d1f61def9cd99e53b0589938fa08 (patch)
tree4559d8e3c81bce458cb1308a3a954c89bf7530f8
parentRe-arrange settings in .flake8 file (diff)
CI: improve readability of some run commands
-rw-r--r--.github/workflows/lint-test-build-push.yaml12
1 files changed, 7 insertions, 5 deletions
diff --git a/.github/workflows/lint-test-build-push.yaml b/.github/workflows/lint-test-build-push.yaml
index ef8a912..46f8749 100644
--- a/.github/workflows/lint-test-build-push.yaml
+++ b/.github/workflows/lint-test-build-push.yaml
@@ -98,8 +98,9 @@ jobs:
# One of the unit tests needs to import numpy.
- name: Install dependencies
- run: "docker exec snekbox_test /bin/bash -c \
- 'pipenv install --system --deploy --dev && pip install numpy'"
+ run: >-
+ docker exec snekbox_test /bin/bash -c
+ 'pipenv install --system --deploy --dev && pip install numpy'
# This runs `flake8` in the container and asks `flake8` to output
# linting errors in the format of the command for registering workflow
@@ -107,9 +108,10 @@ jobs:
# up on this output to generate nice annotations to indicate what went
# wrong where.
- name: Run linter
- run: "docker exec snekbox_test /bin/bash -c 'flake8 \
- --format \"::error file=%(path)s,line=%(row)d,col=%(col)d::\
- [flake8] %(code)s: %(text)s\"'"
+ run: >-
+ docker exec snekbox_test /bin/bash -c
+ 'flake8 --format
+ "::error file=%(path)s,line=%(row)d,col=%(col)d::[flake8] %(code)s: %(text)s"'
# Memory limit tests would fail if this isn't disabled.
- name: Disable swap memory