diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index aec13497e..5bbb76848 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -95,18 +95,14 @@ jobs: uses: snok/install-poetry@v1 with: virtualenvs-create: false - - name: Install Dependencies - run: | - if [[ ${{ runner.os == 'macOS' }} ]]; then - source ./hack/activate-libomp-macos.sh - fi - poetry install --sync --only dev + - name: Install dependencies + run: poetry install --only test - name: Test run: | if [[ ${{ runner.os == 'macOS' }} ]]; then source ./hack/activate-libomp-macos.sh fi - tox -e mlserver + poetry run tox -e mlserver runtimes: strategy: @@ -152,18 +148,14 @@ jobs: uses: snok/install-poetry@v1 with: virtualenvs-create: false - - name: Install Dependencies - run: | - if [[ ${{ runner.os == 'macOS' }} ]]; then - source ./hack/activate-libomp-macos.sh - fi - poetry install --sync --only dev + - name: Install dependencies + run: poetry install --only test - name: Test run: | if [[ ${{ runner.os == 'macOS' }} ]]; then source ./hack/activate-libomp-macos.sh fi - tox -c ./runtimes/${{ matrix.tox-environment }} + poetry run tox -c ./runtimes/${{ matrix.tox-environment }} # Ensure that having all the runtimes installed together works all-runtimes: @@ -209,15 +201,11 @@ jobs: uses: snok/install-poetry@v1 with: virtualenvs-create: false - - name: Install Dependencies - run: | - if [[ ${{ runner.os == 'macOS' }} ]]; then - source ./hack/activate-libomp-macos.sh - fi - poetry install --sync --only dev + - name: Install dependencies + run: poetry install --only test - name: Test run: | if [[ ${{ runner.os == 'macOS' }} ]]; then source ./hack/activate-libomp-macos.sh fi - tox -e all-runtimes + poetry run tox -e all-runtimes diff --git a/poetry.lock b/poetry.lock index 79098183e..223f436cc 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.8.1 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand. [[package]] name = "absl-py" @@ -2655,13 +2655,13 @@ files = [ [[package]] name = "jinja2" -version = "3.1.3" +version = "3.1.4" description = "A very fast and expressive template engine." optional = false python-versions = ">=3.7" files = [ - {file = "Jinja2-3.1.3-py3-none-any.whl", hash = "sha256:7d6d50dd97d52cbc355597bd845fabfbac3f551e1f99619e39a35ce8c370b5fa"}, - {file = "Jinja2-3.1.3.tar.gz", hash = "sha256:ac8bd6544d4bb2c9792bf3a159e80bba8fda7f07e81bc3aed565432d5925ba90"}, + {file = "jinja2-3.1.4-py3-none-any.whl", hash = "sha256:bc5dd2abb727a5319567b7a813e6a2e7318c39f4f487cfe6c89c6f9c7d25197d"}, + {file = "jinja2-3.1.4.tar.gz", hash = "sha256:4a3aee7acbbe7303aede8e9648d13b8bf88a429282aa6122a993f0ac800cb369"}, ] [package.dependencies] @@ -7404,13 +7404,13 @@ testing = ["build[virtualenv] (>=1.0.3)", "covdefaults (>=2.3)", "detect-test-po [[package]] name = "tqdm" -version = "4.66.2" +version = "4.66.3" description = "Fast, Extensible Progress Meter" optional = false python-versions = ">=3.7" files = [ - {file = "tqdm-4.66.2-py3-none-any.whl", hash = "sha256:1ee4f8a893eb9bef51c6e35730cebf234d5d0b6bd112b0271e10ed7c24a02bd9"}, - {file = "tqdm-4.66.2.tar.gz", hash = "sha256:6cd52cdf0fef0e0f543299cfc96fec90d7b8a7e88745f411ec33eb44d5ed3531"}, + {file = "tqdm-4.66.3-py3-none-any.whl", hash = "sha256:4f41d54107ff9a223dca80b53efe4fb654c67efaba7f47bada3ee9d50e05bd53"}, + {file = "tqdm-4.66.3.tar.gz", hash = "sha256:23097a41eba115ba99ecae40d06444c15d1c0c698d527a01c6c8bd1c5d0647e5"}, ] [package.dependencies] @@ -8422,4 +8422,4 @@ testing = ["coverage (>=5.0.3)", "zope.event", "zope.testing"] [metadata] lock-version = "2.0" python-versions = ">=3.9,<3.12" -content-hash = "76bae1ad422aba591bf2ed9b9fdf04f5d38ef1f7d494908f6276fbb92c712c52" +content-hash = "a0089ebf9891465b56ad5451a053712de395f94f34aa4e900eead50923c9c4ab" diff --git a/pyproject.toml b/pyproject.toml index 32d11c0e4..08a0d80db 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -76,6 +76,9 @@ opentelemetry-instrumentation-grpc = ">=0.43b0" opentelemetry-exporter-otlp-proto-grpc = "^1.22.0" pytest-lazy-fixture = "^0.6.3" +[tool.poetry.group.test.dependencies] +tox = "4.14.2" + [tool.poetry.group.dev.dependencies] datamodel-code-generator = "0.25.5" grpcio-tools = "1.48.2"