Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 251aada

Browse files
committed
Parallelize the tests on PR builds
1 parent 5ee5a78 commit 251aada

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,14 @@
1-
name: Build the Site
1+
name: Run The Tests
22

3-
# Controls when the action will run. Triggers the workflow on push or pull request
4-
# events but only for the mainline branch
53
on:
64
pull_request:
75
branches: [ mainline ]
86

9-
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
107
jobs:
11-
# This workflow contains a single job called "build"
128
build:
13-
# The type of runner that the job will run on
149
runs-on: ubuntu-latest
15-
# container: pzelnip/codependentcodrbase:latest
16-
env:
17-
DOCKER_USERNAME: pzelnip
1810

1911
steps:
20-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
2112
- uses: actions/checkout@v2
2213

2314
- name: Check Black format
@@ -40,9 +31,16 @@ jobs:
4031
docker run --rm -v $(pwd):/data cytopia/pydocstyle --version
4132
docker run --rm -v $(pwd):/data cytopia/pydocstyle .
4233
34+
bandit:
35+
runs-on: ubuntu-latest
36+
37+
steps:
38+
- uses: actions/checkout@v2
39+
4340
- name: Bandit check
4441
run: |
4542
echo "No official docker image yet, see https://github.com/PyCQA/bandit/issues/697"
4643
echo "Also: https://github.com/cytopia/docker-pylint/issues/7"
4744
docker run --rm -v $(pwd):/data -w /data pzelnip/codependentcodrbase:latest bandit --version
4845
docker run --rm -v $(pwd):/data -w /data pzelnip/codependentcodrbase:latest bandit .
46+
parallel echo ::: 1 2 3 4

0 commit comments

Comments
 (0)