From 5b90edc8e51de73376ddebb114669b8da0d284e5 Mon Sep 17 00:00:00 2001 From: Lohachov Mykhailo Date: Sat, 18 Jan 2025 19:18:39 +0900 Subject: [PATCH] fix: update poetry usage Signed-off-by: Lohachov Mykhailo --- .github/workflows/iroha2-dev-pr-static.yml | 2 +- .github/workflows/iroha2-dev-pr.yml | 4 ++-- pytests/iroha_cli_tests/README.md | 2 +- pytests/iroha_torii_tests/README.md | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/iroha2-dev-pr-static.yml b/.github/workflows/iroha2-dev-pr-static.yml index e276eebe678..aa2e34c8c1d 100644 --- a/.github/workflows/iroha2-dev-pr-static.yml +++ b/.github/workflows/iroha2-dev-pr-static.yml @@ -41,7 +41,7 @@ jobs: working-directory: pytests/${{ matrix.suite }} run: | poetry lock --no-update - poetry install + poetry install --no-root - name: Check code formatting with Black in pytests/${{ matrix.suite }} working-directory: pytests/${{ matrix.suite }} run: | diff --git a/.github/workflows/iroha2-dev-pr.yml b/.github/workflows/iroha2-dev-pr.yml index 61aae2aff95..b8d762d11ff 100644 --- a/.github/workflows/iroha2-dev-pr.yml +++ b/.github/workflows/iroha2-dev-pr.yml @@ -227,7 +227,7 @@ jobs: run: docker compose -f ${{ env.DEFAULTS_DIR }}/docker-compose.yml up --wait || exit 1 - name: Install Torii pytest dependencies working-directory: pytests/iroha_torii_tests - run: ${{ env.POETRY_PATH }} install + run: ${{ env.POETRY_PATH }} install --no-root - name: Run Torii pytests working-directory: pytests/iroha_torii_tests run: ${{ env.POETRY_PATH }} run pytest @@ -240,7 +240,7 @@ jobs: chmod +x ${{ env.TEST_DIR }}/${{ env.IROHA_BIN }} - name: Install client pytest dependencies working-directory: pytests/iroha_cli_tests - run: ${{ env.POETRY_PATH }} install + run: ${{ env.POETRY_PATH }} install --no-root - name: Run client pytests uses: nick-fields/retry@v3 env: diff --git a/pytests/iroha_cli_tests/README.md b/pytests/iroha_cli_tests/README.md index 09fa4f92759..f935bb8adc8 100644 --- a/pytests/iroha_cli_tests/README.md +++ b/pytests/iroha_cli_tests/README.md @@ -134,7 +134,7 @@ To get started with Poetry, follow these steps: 3. Install the dependencies and set up a virtual environment using Poetry: ```bash - poetry install + poetry install --no-root ``` 4. Activate the virtual environment: diff --git a/pytests/iroha_torii_tests/README.md b/pytests/iroha_torii_tests/README.md index fa2c1bc28da..a9e4abe7757 100644 --- a/pytests/iroha_torii_tests/README.md +++ b/pytests/iroha_torii_tests/README.md @@ -16,7 +16,7 @@ These instructions will get you a copy of the project up and running on your loc First, use Poetry to install the dependencies: ```bash -poetry install +poetry install --no-root ``` This command will create a virtual environment and install all the necessary dependencies.