From 997140af301b36fe58f3a9f8d5c7e6fd8b576e48 Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Mon, 30 May 2022 16:23:13 +0200 Subject: [PATCH 1/5] try change env version --- .github/workflows/e2e-cache.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/e2e-cache.yml b/.github/workflows/e2e-cache.yml index 76cc34502..814d9e06b 100644 --- a/.github/workflows/e2e-cache.yml +++ b/.github/workflows/e2e-cache.yml @@ -71,6 +71,8 @@ jobs: with: python-version: ${{ matrix.python-version }} cache: 'poetry' + - name: Change python version of poetry + run: poetry env use $(which python) - name: Init pyproject.toml run: poetry init -n - name: Install dependencies From eef599fcc9ae5b7f0dd32c508d32b51d80c31c17 Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Mon, 30 May 2022 16:46:34 +0200 Subject: [PATCH 2/5] move after init of pyproject.toml --- .github/workflows/e2e-cache.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/e2e-cache.yml b/.github/workflows/e2e-cache.yml index 814d9e06b..1a82ffbca 100644 --- a/.github/workflows/e2e-cache.yml +++ b/.github/workflows/e2e-cache.yml @@ -71,10 +71,10 @@ jobs: with: python-version: ${{ matrix.python-version }} cache: 'poetry' - - name: Change python version of poetry - run: poetry env use $(which python) - name: Init pyproject.toml run: poetry init -n + - name: Change python version of poetry + run: poetry env use $(which python) - name: Install dependencies run: poetry add flake8 From 292ae2b2fac98677546a29bf5d710219e1a756b4 Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Mon, 30 May 2022 17:11:40 +0200 Subject: [PATCH 3/5] add debug line --- .github/workflows/e2e-cache.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e-cache.yml b/.github/workflows/e2e-cache.yml index 1a82ffbca..4b2e4a289 100644 --- a/.github/workflows/e2e-cache.yml +++ b/.github/workflows/e2e-cache.yml @@ -74,7 +74,9 @@ jobs: - name: Init pyproject.toml run: poetry init -n - name: Change python version of poetry - run: poetry env use $(which python) + run: | + which python + poetry env use $(which python) - name: Install dependencies run: poetry add flake8 From d79909364fbd860cadc1f20368ac9b912e62f162 Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Mon, 30 May 2022 17:17:47 +0200 Subject: [PATCH 4/5] add debug line --- .github/workflows/e2e-cache.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/e2e-cache.yml b/.github/workflows/e2e-cache.yml index 4b2e4a289..30f44857f 100644 --- a/.github/workflows/e2e-cache.yml +++ b/.github/workflows/e2e-cache.yml @@ -76,6 +76,7 @@ jobs: - name: Change python version of poetry run: | which python + $(which python) --version poetry env use $(which python) - name: Install dependencies run: poetry add flake8 From bdf81b81ac86a68773c86204ae842d974b645707 Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Mon, 30 May 2022 17:47:51 +0200 Subject: [PATCH 5/5] set pwsh --- .github/workflows/e2e-cache.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/e2e-cache.yml b/.github/workflows/e2e-cache.yml index 30f44857f..1c8f4e9d7 100644 --- a/.github/workflows/e2e-cache.yml +++ b/.github/workflows/e2e-cache.yml @@ -74,6 +74,7 @@ jobs: - name: Init pyproject.toml run: poetry init -n - name: Change python version of poetry + shell: pwsh run: | which python $(which python) --version