From 6167be7c1e728b4159986e0869a408192a8bfd58 Mon Sep 17 00:00:00 2001 From: vggonzal <9Tcostoamm> Date: Wed, 18 Oct 2023 14:53:48 -0700 Subject: [PATCH] disable actions to be faster --- .github/workflows/build.yml | 3 +++ 1 file changed, 3 insertions(+) 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