Move unit-tests in build to be parallel to UTs
@@ -81,18 +81,11 @@ jobs:
pipenv run checkov -s -d terragoat --bc-api-key $PRISMA_KEY --repo-id yuvalyacoby/terragoat > checkov_report_prisma.txt
grep "prismacloud.io" checkov_report_prisma.txt
exit $?
- bump-version:
- needs: [integration-tests, prisma-tests]
- runs-on: [self-hosted, public, linux, x64]
+ unit-tests:
timeout-minutes: 30
+ runs-on: [self-hosted, public, linux, x64]
steps:
- uses: actions/checkout@v2
- - name: Import GPG key
- id: import_gpg
- uses: crazy-max/ghaction-import-gpg@v3
- with:
- gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
- passphrase: ${{ secrets.PASSPHRASE }}
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
@@ -109,6 +102,18 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pipenv run python -m pytest tests
+ bump-version:
+ needs: [integration-tests, prisma-tests, unit-tests]
+ runs-on: [self-hosted, public, linux, x64]
+ timeout-minutes: 30
+ steps:
+ - uses: actions/checkout@v2
+ - name: Import GPG key
+ id: import_gpg
+ uses: crazy-max/ghaction-import-gpg@v3
+ with:
+ gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
+ passphrase: ${{ secrets.PASSPHRASE }}
- name: version
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
