Skip to content

Commit

Permalink
chore: disable docker test
Browse files Browse the repository at this point in the history
  • Loading branch information
sangjanai committed Nov 13, 2024
1 parent 216cd78 commit d101182
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 36 deletions.
72 changes: 36 additions & 36 deletions .github/workflows/cortex-cpp-quality-gate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -188,40 +188,40 @@ jobs:
AWS_SECRET_ACCESS_KEY: "${{ secrets.MINIO_SECRET_ACCESS_KEY }}"
AWS_DEFAULT_REGION: "${{ secrets.MINIO_REGION }}"

build-docker-and-test:
runs-on: ubuntu-latest
steps:
- name: Getting the repo
uses: actions/checkout@v3
with:
submodules: 'recursive'

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
# build-docker-and-test:
# runs-on: ubuntu-latest
# steps:
# - name: Getting the repo
# uses: actions/checkout@v3
# with:
# submodules: 'recursive'

# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3

# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v3

- name: Run Docker
run: |
docker build -t menloltd/cortex:test -f docker/Dockerfile .
docker run -it -d -p 3928:39281 --name cortex menloltd/cortex:test
- name: use python
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Run e2e tests
run: |
cd engine
python -m pip install --upgrade pip
python -m pip install -r e2e-test/requirements.txt
pytest e2e-test/test_api_docker.py
- name: Run Docker
continue-on-error: true
if: always()
run: |
docker stop cortex
docker rm cortex
# - name: Run Docker
# run: |
# docker build -t menloltd/cortex:test -f docker/Dockerfile .
# docker run -it -d -p 3928:39281 --name cortex menloltd/cortex:test

# - name: use python
# uses: actions/setup-python@v5
# with:
# python-version: "3.10"

# - name: Run e2e tests
# run: |
# cd engine
# python -m pip install --upgrade pip
# python -m pip install -r e2e-test/requirements.txt
# pytest e2e-test/test_api_docker.py

# - name: Run Docker
# continue-on-error: true
# if: always()
# run: |
# docker stop cortex
# docker rm cortex
1 change: 1 addition & 0 deletions engine/e2e-test/test_api_model_start.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class TestApiModelStart:
@pytest.fixture(autouse=True)
def setup_and_teardown(self):
# Setup
stop_server()
success = start_server()
if not success:
raise Exception("Failed to start server")
Expand Down
1 change: 1 addition & 0 deletions engine/e2e-test/test_api_model_stop.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ class TestApiModelStop:
@pytest.fixture(autouse=True)
def setup_and_teardown(self):
# Setup
stop_server()
success = start_server()
if not success:
raise Exception("Failed to start server")
Expand Down

0 comments on commit d101182

Please sign in to comment.