diff --git a/.github/workflows/push_docker_image.yml b/.github/workflows/push_docker_image.yml index 5bd247b..83c1eef 100644 --- a/.github/workflows/push_docker_image.yml +++ b/.github/workflows/push_docker_image.yml @@ -27,8 +27,8 @@ jobs: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - - name: Extract metadata (tags, labels) for Docker + + - name: Extract metadata (tags, labels) for Docker id: meta uses: docker/metadata-action@v4 with: @@ -38,8 +38,11 @@ jobs: type=ref,event=pr type=semver,pattern={{version}} type=semver,pattern={{major}}.{{minor}} - - - name: Build and push + + - name: Create folder models + run: mkdir -p models + + - name: Build and push uses: docker/build-push-action@v4 with: context: . diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bf554ea..cdd7fd0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,6 +21,9 @@ jobs: with: python-version: '3.11' + - name: Free up space + run: make free_up_space + - name: Install venv run: make install_venv diff --git a/Makefile b/Makefile index 8495983..3ee72d4 100644 --- a/Makefile +++ b/Makefile @@ -33,4 +33,21 @@ stop: docker compose stop test: - . .venv/bin/activate; command cd src; command python -m pytest \ No newline at end of file + . .venv/bin/activate; command cd src; command python -m pytest + +free_up_space: + df -h + sudo rm -rf /usr/share/dotnet + sudo rm -rf /opt/ghc + sudo rm -rf "/usr/local/share/boost" + sudo rm -rf "$AGENT_TOOLSDIRECTORY" + sudo apt-get remove -y '^llvm-.*' || true + sudo apt-get remove -y 'php.*' || true + sudo apt-get remove -y google-cloud-sdk hhvm google-chrome-stable firefox mono-devel || true + sudo apt-get autoremove -y + sudo apt-get clean + sudo rm -rf /usr/share/dotnet + sudo rm -rf /usr/local/lib/android + sudo rm -rf /opt/hostedtoolcache/CodeQL + sudo docker image prune --all --force + df -h \ No newline at end of file