Skip to content

Comments

add resolution option to matrix to test minimum stated deps (opt in)#35

Merged
tlambert03 merged 6 commits intopydev-guide:mainfrom
tlambert03:resolution
Sep 28, 2025
Merged

add resolution option to matrix to test minimum stated deps (opt in)#35
tlambert03 merged 6 commits intopydev-guide:mainfrom
tlambert03:resolution

Conversation

@tlambert03
Copy link
Contributor

@tlambert03 tlambert03 commented Sep 28, 2025

this PR

  • updates used actions to the latest versions
  • makes py 3.10 the default (3.9 is EOL next week) ... though 3.9 is still in the options
  • adds an actionlint test to make sure the rendered workflows are valid
  • most significant change: adds a new resolution: ["highest", "lowest-direct"] to the matrix. This (uv-dependent feature) is super useful to make sure that your full dependency constraints work. Currently off by default, (must be selected in customize) since it requires '>=' for all your pins in pyproject

this ends up looking like this:

  test:
    name: ${{ matrix.platform }} (${{ matrix.python-version }}) [${{ matrix.resolution }}]
    runs-on: ${{ matrix.platform }}
    env:
      UV_PRERELEASE: ${{ github.event_name == 'schedule' && 'allow' || 'if-necessary-or-explicit' }}
      UV_RESOLUTION: ${{ matrix.resolution }}
      PYTEST_ADDOPTS: ${{ matrix.resolution == 'lowest-direct' && '-W ignore' || '' }}
    strategy:
      fail-fast: false
      matrix:
        python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
        platform: [ubuntu-latest, macos-latest, windows-latest]
        resolution: ["highest", "lowest-direct"]

@tlambert03 tlambert03 changed the title drop py3.9 add resolution to matrix add resolution option to matrix to test minimum stated deps (opt in) Sep 28, 2025
@tlambert03 tlambert03 enabled auto-merge (squash) September 28, 2025 12:53
@tlambert03 tlambert03 merged commit a4337c1 into pydev-guide:main Sep 28, 2025
15 checks passed
@tlambert03 tlambert03 deleted the resolution branch September 28, 2025 12:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant