diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 79657e0f..8fb8b311 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -112,6 +112,7 @@ jobs: echo "TARGET_ENV_UPPERCASE=SIT" >> $GITHUB_ENV - name: Run Snyk as a blocking step + if: ${{ startsWith(github.ref, 'test') }} uses: snyk/actions/python-3.9@master env: SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} @@ -123,6 +124,7 @@ jobs: --severity-threshold=high --fail-on=all - name: Run Snyk on Python + if: ${{ startsWith(github.ref, 'test') }} uses: snyk/actions/python-3.9@master env: SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} @@ -157,6 +159,7 @@ jobs: poetry build - name: Test with pytest + if: ${{ startsWith(github.ref, 'test') }} run: | poetry run pytest tests/test_api.py -k 'test_gettimeseries_get' poetry run pytest tests/test_hydrocron_database.py