From 576a36f7df4b8f3f0c8e34dc6325f72b51923a7a Mon Sep 17 00:00:00 2001 From: Thomas Gruber Date: Wed, 16 Oct 2024 18:15:29 +0200 Subject: [PATCH] Update test-n-publish.yml Install `setuptools` for Python 3.12+ --- .github/workflows/test-n-publish.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-n-publish.yml b/.github/workflows/test-n-publish.yml index 699c123..e20602d 100644 --- a/.github/workflows/test-n-publish.yml +++ b/.github/workflows/test-n-publish.yml @@ -7,7 +7,11 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] + python-major-version: [3] + python-minor-version: [8, 9, 10, 11, 12, 13] + env: + python-version: ${{ format('{0}.{1}', matrix.python-major-version, matrix.python-minor-version) }} + steps: - uses: actions/checkout@v2 @@ -15,10 +19,18 @@ jobs: name: Set up Python ${{ matrix.python-version }} with: python-version: ${{ matrix.python-version }} - - name: Install + - name: Install Pip run: | python -m pip install --upgrade pip + - name: Install Python dependencies + run: | python -m pip install codecov requests + - name: Install Python setuptools + if: ${{ (matrix.python-major-version == 3 && matrix.python-minor-version >= 12) || matrix.python-major-version > 3 }} + run: | + python -m pip install setuptools + - name: Install PyCacheSim + run: | python -m pip install -e . - name: Test run: |