Skip to content

Commit

Permalink
chore: fix workflow (#4)
Browse files Browse the repository at this point in the history
chore: fix ci workflow
  • Loading branch information
scott-es authored Apr 2, 2024
1 parent 40de070 commit e747122
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Build and Test
on:
push:
branches:
- main
workflow_dispatch:
jobs:
pytest:
Expand All @@ -20,11 +18,19 @@ jobs:
run: pip install poetry

- name: Install dependencies
run: $HOME/.poetry/bin/poetry install -v
run: python -m poetry install -v
env:
POETRY_VIRTUALENVS_IN_PROJECT: true

- name: Cache the virtualenv
uses: actions/cache@v2
with:
path: ./.venv
key: ${{ runner.os }}-venv-${{ hashFiles('**/poetry.lock') }}

- name: Run pytest
run: |
$HOME/.poetry/bin/poetry run pytest -v --ruff --ruff-format
python -m poetry run pytest -v --ruff --ruff-format
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

8 changes: 4 additions & 4 deletions bazel2snyk/test/fixtures/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"//snyk/scripts/cli:main",
"test",
"--snyk-org-id",
"a1f3f68e-99b1-4f3f-bfdb-6ee4b4990513",
"fa37c43d-b33f-489a-8708-9b84b6e6211b",
]

pip_args["monitor"] = [
Expand All @@ -61,7 +61,7 @@
"//snyk/scripts/cli:main",
"monitor",
"--snyk-org-id",
"a1f3f68e-99b1-4f3f-bfdb-6ee4b4990513",
"fa37c43d-b33f-489a-8708-9b84b6e6211b",
]

maven_args = {}
Expand All @@ -87,7 +87,7 @@
"//:java-maven-lib",
"test",
"--snyk-org-id",
"a1f3f68e-99b1-4f3f-bfdb-6ee4b4990513",
"fa37c43d-b33f-489a-8708-9b84b6e6211b",
]

maven_args["monitor"] = [
Expand All @@ -100,5 +100,5 @@
"//:java-maven-lib",
"monitor",
"--snyk-org-id",
"a1f3f68e-99b1-4f3f-bfdb-6ee4b4990513",
"fa37c43d-b33f-489a-8708-9b84b6e6211b",
]

0 comments on commit e747122

Please sign in to comment.