Skip to content

Commit

Permalink
feat: change return error code
Browse files Browse the repository at this point in the history
  • Loading branch information
JoanFM committed Dec 17, 2024
1 parent 59f832a commit 777240a
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 72 deletions.
47 changes: 22 additions & 25 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,6 @@ jobs:
matrix:
include:
# linux
- os: ubuntu-latest
python: '3.7'
python-manylinux-tag: "cp37-cp37m"
- os: ubuntu-latest
python: '3.8'
python-manylinux-tag: "cp38-cp38"
Expand Down Expand Up @@ -451,7 +448,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.8]
python-version: [3.10]
test-path: ${{fromJson(needs.prep-testbed.outputs.matrix)}}
steps:
- uses: actions/[email protected]
Expand Down Expand Up @@ -503,7 +500,7 @@ jobs:
files: "coverage.xml"
- name: Upload coverage from test to Codecov
uses: codecov/[email protected]
if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.8'
if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.10'
with:
file: coverage.xml
name: ${{ matrix.test-path }}-codecov
Expand Down Expand Up @@ -587,10 +584,10 @@ jobs:
# with:
# access_token: ${{ github.token }}
- uses: actions/[email protected]
- name: Set up Python 3.8
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: "3.10"
- name: Test hubapp with hubpods
run: |
./tests/jinahub/test_integration.sh
Expand All @@ -604,10 +601,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up Python 3.8
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: "3.10"
- name: Prepare enviroment
run: |
docker build --build-arg DOCARRAY_VERSION="0.21.0" -f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
Expand All @@ -634,7 +631,7 @@ jobs:
files: "coverage.xml"
- name: Upload coverage from test to Codecov
uses: codecov/[email protected]
if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.8'
if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.10'
with:
file: coverage.xml
name: ${{ matrix.test-path }}-codecov
Expand All @@ -646,10 +643,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up Python 3.8
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: "3.10"
- name: Prepare enviroment
run: |
docker build --build-arg DOCARRAY_VERSION="0.21.0" -f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
Expand All @@ -676,7 +673,7 @@ jobs:
files: "coverage.xml"
- name: Upload coverage from test to Codecov
uses: codecov/[email protected]
if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.8'
if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.10'
with:
file: coverage.xml
name: ${{ matrix.test-path }}-codecov
Expand All @@ -688,10 +685,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up Python 3.8
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: "3.10"
- name: Prepare enviroment
run: |
docker build --build-arg DOCARRAY_VERSION="0.21.0" -f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
Expand All @@ -718,7 +715,7 @@ jobs:
files: "coverage.xml"
- name: Upload coverage from test to Codecov
uses: codecov/[email protected]
if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.8'
if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.10'
with:
file: coverage.xml
name: ${{ matrix.test-path }}-codecov
Expand All @@ -730,10 +727,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up Python 3.8
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: "3.10"
- name: Prepare enviroment
run: |
docker build --build-arg DOCARRAY_VERSION="0.21.0" -f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
Expand Down Expand Up @@ -761,7 +758,7 @@ jobs:
files: "coverage.xml"
- name: Upload coverage from test to Codecov
uses: codecov/[email protected]
if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.8'
if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.10'
with:
file: coverage.xml
name: ${{ matrix.test-path }}-codecov
Expand All @@ -773,10 +770,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up Python 3.8
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: "3.10"
- name: Prepare enviroment
run: |
docker build --build-arg DOCARRAY_VERSION="0.21.0" -f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
Expand All @@ -801,7 +798,7 @@ jobs:
files: "coverage.xml"
- name: Upload coverage from test to Codecov
uses: codecov/[email protected]
if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.8'
if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.10'
with:
file: coverage.xml
name: ${{ matrix.test-path }}-codecov
Expand All @@ -813,10 +810,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Set up Python 3.8
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: "3.10"
- name: Prepare enviroment
run: |
docker build --build-arg DOCARRAY_VERSION="0.21.0" -f Dockerfiles/test-pip.Dockerfile -t jinaai/jina:test-pip .
Expand All @@ -839,7 +836,7 @@ jobs:
files: "coverage.xml"
- name: Upload coverage from test to Codecov
uses: codecov/[email protected]
if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.8'
if: steps.check_files.outputs.files_exists == 'true' && ${{ matrix.python-version }} == '3.10'
with:
file: coverage.xml
name: ${{ matrix.test-path }}-codecov
Expand Down
Loading

0 comments on commit 777240a

Please sign in to comment.