Skip to content

Commit

Permalink
reduced more space in cd pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
rasswanth-s committed Nov 1, 2023
1 parent 3d48a4f commit ae00c27
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/cd-syft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ jobs:
with:
token: ${{ secrets.SYFT_BOT_COMMIT_TOKEN }}

# free 10GB of space
- name: Remove unnecessary files
run: |
sudo rm -rf /usr/share/dotnet
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
docker image prune --all --force
docker builder prune --all --force
docker system prune --all --force
- name: Set up Python
uses: actions/setup-python@v3
with:
Expand Down
12 changes: 10 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@ description = Syft
commands =
pip list

# Syft Minimal - without dev packages
[testenv:syft-minimal]
deps =
-e{toxinidir}/packages/syft
changedir = {toxinidir}/packages/syft
description = Syft
commands =
pip list

[testenv:hagrid]
deps =
-e{toxinidir}/packages/hagrid[dev]
Expand Down Expand Up @@ -356,11 +365,10 @@ commands =
[testenv:syft.protocol.check]
description = Syft Protocol Check
deps =
{[testenv:syft]deps}
{[testenv:syft-minimal]deps}
changedir = {toxinidir}/packages/syft
allowlist_externals =
bash

setenv =
BUMP = {env:BUMP:False}
commands =
Expand Down

0 comments on commit ae00c27

Please sign in to comment.