mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
disable a bunch of stuff for testing
This commit is contained in:
parent
2031c70c8e
commit
0ab5ff6d6d
96
.github/workflows/docker.yaml
vendored
96
.github/workflows/docker.yaml
vendored
@ -68,54 +68,54 @@ jobs:
|
|||||||
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # pin@v4.7.1
|
uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # pin@v4.7.1
|
||||||
with:
|
with:
|
||||||
python-version: ${{ env.python_version }}
|
python-version: ${{ env.python_version }}
|
||||||
- name: Version Check
|
# - name: Version Check
|
||||||
run: |
|
# run: |
|
||||||
pip install requests
|
# pip install requests
|
||||||
pip install pyyaml
|
# pip install pyyaml
|
||||||
python3 ci/version_check.py
|
# python3 ci/version_check.py
|
||||||
echo "git_commit_hash=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
# echo "git_commit_hash=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
|
||||||
echo "git_commit_date=$(git show -s --format=%ci)" >> $GITHUB_ENV
|
# echo "git_commit_date=$(git show -s --format=%ci)" >> $GITHUB_ENV
|
||||||
- name: Test Docker Image
|
# - name: Test Docker Image
|
||||||
id: test-docker
|
# id: test-docker
|
||||||
run: |
|
# run: |
|
||||||
docker build . --target production --tag inventree-test
|
# docker build . --target production --tag inventree-test
|
||||||
docker run --rm inventree-test invoke --version
|
# docker run --rm inventree-test invoke --version
|
||||||
docker run --rm inventree-test invoke --list
|
# docker run --rm inventree-test invoke --list
|
||||||
docker run --rm inventree-test gunicorn --version
|
# docker run --rm inventree-test gunicorn --version
|
||||||
docker run --rm inventree-test pg_dump --version
|
# docker run --rm inventree-test pg_dump --version
|
||||||
- name: Build Docker Image
|
# - name: Build Docker Image
|
||||||
# Build the development docker image (using docker-compose.yml)
|
# # Build the development docker image (using docker-compose.yml)
|
||||||
run: docker-compose build --no-cache
|
# run: docker-compose build --no-cache
|
||||||
- name: Update Docker Image
|
# - name: Update Docker Image
|
||||||
run: |
|
# run: |
|
||||||
docker-compose run inventree-dev-server invoke update
|
# docker-compose run inventree-dev-server invoke update
|
||||||
docker-compose run inventree-dev-server invoke setup-dev
|
# docker-compose run inventree-dev-server invoke setup-dev
|
||||||
docker-compose up -d
|
# docker-compose up -d
|
||||||
docker-compose run inventree-dev-server invoke wait
|
# docker-compose run inventree-dev-server invoke wait
|
||||||
- name: Check Data Directory
|
# - name: Check Data Directory
|
||||||
# The following file structure should have been created by the docker image
|
# # The following file structure should have been created by the docker image
|
||||||
run: |
|
# run: |
|
||||||
test -d data
|
# test -d data
|
||||||
test -d data/env
|
# test -d data/env
|
||||||
test -d data/pgdb
|
# test -d data/pgdb
|
||||||
test -d data/media
|
# test -d data/media
|
||||||
test -d data/static
|
# test -d data/static
|
||||||
test -d data/plugins
|
# test -d data/plugins
|
||||||
test -f data/config.yaml
|
# test -f data/config.yaml
|
||||||
test -f data/plugins.txt
|
# test -f data/plugins.txt
|
||||||
test -f data/secret_key.txt
|
# test -f data/secret_key.txt
|
||||||
- name: Run Unit Tests
|
# - name: Run Unit Tests
|
||||||
run: |
|
# run: |
|
||||||
echo "GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> docker.dev.env
|
# 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 --disable-pty
|
||||||
docker-compose run inventree-dev-server invoke test --migrations --disable-pty
|
# docker-compose run inventree-dev-server invoke test --migrations --disable-pty
|
||||||
docker-compose down
|
# docker-compose down
|
||||||
- name: Clean up test folder
|
# - name: Clean up test folder
|
||||||
run: |
|
# run: |
|
||||||
rm -rf InvenTree/_testfolder
|
# rm -rf InvenTree/_testfolder
|
||||||
- name: Set up QEMU
|
# - name: Set up QEMU
|
||||||
if: github.event_name != 'pull_request'
|
# if: github.event_name != 'pull_request'
|
||||||
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # pin@v3.0.0
|
# uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3 # pin@v3.0.0
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
if: github.event_name != 'pull_request'
|
if: github.event_name != 'pull_request'
|
||||||
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # pin@v3.0.0
|
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226 # pin@v3.0.0
|
||||||
|
Loading…
Reference in New Issue
Block a user