From cfeeced7b1282a0804dc2fd505413bc3d3a7157e Mon Sep 17 00:00:00 2001 From: Yaraslau Zhylko Date: Mon, 13 Feb 2023 11:55:19 +0300 Subject: [PATCH 1/6] chore(ci): run tests with correct python version --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 72b5d1c7..8798b986 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -144,7 +144,7 @@ jobs: uses: actions/cache@v3 with: path: .venv - key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }} + key: venv-${{ runner.os }}-${{ matrix.pyver }}-${{ hashFiles('**/poetry.lock') }} #---------------------------------------------- # Make sync version of library (redis_om) #---------------------------------------------- From 77fc2db1c51a69e7ccd4f527799c9e6875500490 Mon Sep 17 00:00:00 2001 From: Yaraslau Zhylko Date: Mon, 13 Feb 2023 12:08:18 +0300 Subject: [PATCH 2/6] another approach --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8798b986..7b7a3f70 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -144,7 +144,7 @@ jobs: uses: actions/cache@v3 with: path: .venv - key: venv-${{ runner.os }}-${{ matrix.pyver }}-${{ hashFiles('**/poetry.lock') }} + key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} #---------------------------------------------- # Make sync version of library (redis_om) #---------------------------------------------- From fcc75cffd064bc264dd29e68470873a61ae2c2e0 Mon Sep 17 00:00:00 2001 From: Yaraslau Zhylko Date: Mon, 13 Feb 2023 12:19:53 +0300 Subject: [PATCH 3/6] another try --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7b7a3f70..babbba61 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -72,7 +72,7 @@ jobs: uses: actions/cache@v3 with: path: .venv - key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }} + key: venv-${{ runner.os }}-${{ hashFiles('**/pyproject.toml') }} - name: Make sync version of library (redis_om) run: make sync #---------------------------------------------- @@ -144,7 +144,7 @@ jobs: uses: actions/cache@v3 with: path: .venv - key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} + key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/pyproject.toml') }} #---------------------------------------------- # Make sync version of library (redis_om) #---------------------------------------------- From 2030be7499f52debf7eb1831d43f775077b731d3 Mon Sep 17 00:00:00 2001 From: Yaraslau Zhylko Date: Mon, 13 Feb 2023 12:26:13 +0300 Subject: [PATCH 4/6] yet another try --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index babbba61..be066ebc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -125,6 +125,7 @@ jobs: uses: actions/checkout@v3 - name: Setup Python ${{ matrix.pyver }} uses: actions/setup-python@v4 + id: setup-python with: python-version: ${{ matrix.pyver }} #---------------------------------------------- From 9e4ff1df7c79d7d731487d17c301f5ea3b796113 Mon Sep 17 00:00:00 2001 From: Yaraslau Zhylko Date: Wed, 1 Mar 2023 16:33:06 +0300 Subject: [PATCH 5/6] use matrix.pyver --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f19b643c..92846347 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -126,7 +126,6 @@ jobs: uses: actions/checkout@v3 - name: Setup Python ${{ matrix.pyver }} uses: actions/setup-python@v4 - id: setup-python with: python-version: ${{ matrix.pyver }} #---------------------------------------------- @@ -146,7 +145,7 @@ jobs: uses: actions/cache@v3 with: path: .venv - key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/pyproject.toml') }} + key: venv-${{ runner.os }}-${{ matrix.pyver }}-${{ hashFiles('**/pyproject.toml') }} #---------------------------------------------- # Make sync version of library (redis_om) #---------------------------------------------- From 038dcb056cd3f6b12ec999c40d85ee8c7aa0cb86 Mon Sep 17 00:00:00 2001 From: Yaraslau Zhylko Date: Thu, 2 Mar 2023 18:05:37 +0300 Subject: [PATCH 6/6] limit mypy platform --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 9a33b1fd..15cef3cc 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -47,7 +47,7 @@ hiredis = "^2.0.0" more-itertools = ">=8.14,<10.0" [tool.poetry.dev-dependencies] -mypy = "^0.982" +mypy = {version = "^0.982", markers = "platform_python_implementation == 'CPython'"} pytest = "^7.1.3" ipdb = "^0.13.9" black = "^23.1"