From 0ab5ff6d6d868ed06c67188cc429de2a50671931 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Thu, 21 Mar 2024 20:38:15 +0100 Subject: [PATCH] disable a bunch of stuff for testing --- .github/workflows/docker.yaml | 96 +++++++++++++++++------------------ 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index 061d7e556d..5cb57a0012 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -68,54 +68,54 @@ jobs: uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # pin@v4.7.1 with: python-version: ${{ env.python_version }} - - name: Version Check - run: | - pip install requests - pip install pyyaml - python3 ci/version_check.py - echo "git_commit_hash=$(git rev-parse --short HEAD)" >> $GITHUB_ENV - echo "git_commit_date=$(git show -s --format=%ci)" >> $GITHUB_ENV - - name: Test Docker Image - id: test-docker - run: | - docker build . --target production --tag inventree-test - docker run --rm inventree-test invoke --version - docker run --rm inventree-test invoke --list - docker run --rm inventree-test gunicorn --version - docker run --rm inventree-test pg_dump --version - - name: Build Docker Image - # Build the development docker image (using docker-compose.yml) - run: docker-compose build --no-cache - - name: Update Docker Image - run: | - docker-compose run inventree-dev-server invoke update - docker-compose run inventree-dev-server invoke setup-dev - docker-compose up -d - docker-compose run inventree-dev-server invoke wait - - name: Check Data Directory - # The following file structure should have been created by the docker image - run: | - test -d data - test -d data/env - test -d data/pgdb - test -d data/media - test -d data/static - test -d data/plugins - test -f data/config.yaml - test -f data/plugins.txt - test -f data/secret_key.txt - - name: Run Unit Tests - run: | - echo "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> docker.dev.env - docker-compose run inventree-dev-server invoke test --disable-pty - docker-compose run inventree-dev-server invoke test --migrations --disable-pty - docker-compose down - - name: Clean up test folder - run: | - rm -rf InvenTree/_testfolder - - name: Set up QEMU - if: github.event_name != 'pull_request' - uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # pin@v3.0.0 + # - name: Version Check + # run: | + # pip install requests + # pip install pyyaml + # python3 ci/version_check.py + # echo "git_commit_hash=$(git rev-parse --short HEAD)" >> $GITHUB_ENV + # echo "git_commit_date=$(git show -s --format=%ci)" >> $GITHUB_ENV + # - name: Test Docker Image + # id: test-docker + # run: | + # docker build . --target production --tag inventree-test + # docker run --rm inventree-test invoke --version + # docker run --rm inventree-test invoke --list + # docker run --rm inventree-test gunicorn --version + # docker run --rm inventree-test pg_dump --version + # - name: Build Docker Image + # # Build the development docker image (using docker-compose.yml) + # run: docker-compose build --no-cache + # - name: Update Docker Image + # run: | + # docker-compose run inventree-dev-server invoke update + # docker-compose run inventree-dev-server invoke setup-dev + # docker-compose up -d + # docker-compose run inventree-dev-server invoke wait + # - name: Check Data Directory + # # The following file structure should have been created by the docker image + # run: | + # test -d data + # test -d data/env + # test -d data/pgdb + # test -d data/media + # test -d data/static + # test -d data/plugins + # test -f data/config.yaml + # test -f data/plugins.txt + # test -f data/secret_key.txt + # - name: Run Unit Tests + # run: | + # echo "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> docker.dev.env + # docker-compose run inventree-dev-server invoke test --disable-pty + # docker-compose run inventree-dev-server invoke test --migrations --disable-pty + # docker-compose down + # - name: Clean up test folder + # run: | + # rm -rf InvenTree/_testfolder + # - name: Set up QEMU + # if: github.event_name != 'pull_request' + # uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # pin@v3.0.0 - name: Set up Docker Buildx if: github.event_name != 'pull_request' uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # pin@v3.0.0