Skip to content

Commit

Permalink
Update test-n-publish.yml
Browse files Browse the repository at this point in the history
Install `setuptools` for Python 3.12+
  • Loading branch information
TomTheBear authored Oct 16, 2024
1 parent 1a3cceb commit 576a36f
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/test-n-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,30 @@ 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
- uses: actions/setup-python@v2
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: |
Expand Down

0 comments on commit 576a36f

Please sign in to comment.