From d13dd18b10979df53c451c2be4e9ac6ee655099f Mon Sep 17 00:00:00 2001 From: Paris Kasidiaris Date: Fri, 20 Sep 2024 16:19:05 +0300 Subject: [PATCH 1/4] Update Python versions --- .github/workflows/test.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index be7f811..97f39ad 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,12 +8,11 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: [3.6, 3.7, 3.8] + python-version: [3.10, 3.11, 3.12] steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + - uses: actions/checkout@v4.1.7 + - uses: actions/setup-python@v5.2.0 with: python-version: ${{ matrix.python-version }} - name: Install dependencies @@ -21,9 +20,6 @@ jobs: pip install --upgrade pip==20.2.4 poetry==1.1.4 poetry config virtualenvs.create false poetry install - - name: Check formatting - run: black --check ./ - - name: Check typings - run: mypy *.py - - name: Test with pytest - run: pytest ./ + - run: black --check ./ + - run: mypy *.py + - run: pytest ./ From 8e26278b0fa9b4c77e07a26cf520898c5fb43d12 Mon Sep 17 00:00:00 2001 From: Paris Kasidiaris Date: Fri, 20 Sep 2024 16:19:42 +0300 Subject: [PATCH 2/4] CI: Use strings for Python versions --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 97f39ad..b48b14f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,7 +8,7 @@ jobs: strategy: max-parallel: 4 matrix: - python-version: [3.10, 3.11, 3.12] + python-version: ["3.10", "3.11", "3.12"] steps: - uses: actions/checkout@v4.1.7 From 0b7b77439d7f4d745430296e0a4dc5803cd014f9 Mon Sep 17 00:00:00 2001 From: Paris Kasidiaris Date: Fri, 20 Sep 2024 16:21:06 +0300 Subject: [PATCH 3/4] fix: poetry --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b48b14f..b4aeccf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,7 +17,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - pip install --upgrade pip==20.2.4 poetry==1.1.4 + pip install --upgrade pip==20.2.4 poetry==1.1.14 poetry config virtualenvs.create false poetry install - run: black --check ./ From 5b508a23dcf43481d4d94b9d91c9347a0a2b2177 Mon Sep 17 00:00:00 2001 From: Paris Kasidiaris Date: Fri, 20 Sep 2024 16:22:46 +0300 Subject: [PATCH 4/4] CI: update pip and poetry --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b4aeccf..83f9436 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,7 +17,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - pip install --upgrade pip==20.2.4 poetry==1.1.14 + pip install --upgrade pip==24.2 poetry==1.8.3 poetry config virtualenvs.create false poetry install - run: black --check ./