Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fix workflow #4

Merged
merged 4 commits into from
Apr 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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",
]
Loading