diff --git a/.env b/.env new file mode 100755 index 00000000..8dbf58e0 --- /dev/null +++ b/.env @@ -0,0 +1,2 @@ +ACT_RUNNER_UID=0 +ACT_RUNNER_GID=0 diff --git a/.github/workflows/local-build-test.yml b/.github/workflows/local-build-test.yml new file mode 100644 index 00000000..c5677034 --- /dev/null +++ b/.github/workflows/local-build-test.yml @@ -0,0 +1,54 @@ +name: LOCAL Build and Test + +env: + DOCKER_CLIENT_TIMEOUT: "300" + COMPOSE_HTTP_TIMEOUT: "300" + +on: + push: + paths: + - "images/**" + - "model/**" + - "scripts/**" + - "dodo.py" + - ".github/workflows/local-build-test.yml" + + pull_request: + branches: [ main ] + paths: + - "images/**" + - "model/**" + - "scripts/**" + - "dodo.py" + - ".github/workflows/local-build-test.yml" + + workflow_dispatch: + +jobs: + docker-pipeline: + name: Docker Pipeline + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Install pip dependencies + run: | + sudo apt update + sudo apt install -y python3-pip + python3 -m venv venv + source venv/bin/activate + python3 -m pip install --upgrade pip + python3 -m pip install -r scripts/requirements.txt + + - name: Run Build and Tests + run: | + source venv/bin/activate + python3 scripts/main.py + + - name: Check Free Space + run: | + echo "Free space:" + df -h \ No newline at end of file diff --git a/images/tests_common/test_packages.py b/images/tests_common/test_packages.py index a9958718..f19b4596 100644 --- a/images/tests_common/test_packages.py +++ b/images/tests_common/test_packages.py @@ -98,6 +98,7 @@ "jupyterlab-git", "jupyter-pluto-proxy", "python-lsp-server", + "mamba", ]