Skip to content

Extend the CI jobs in the "GMT Tests" workflow #3615

Closed

Description

@seisman

Currently, in the "GMT Tests" workflow, we have 7 CI jobs:

  • Python 3.10 + core packages (pinned to minimum versions) [Linux/macOS/Windows]
  • Python 3.12 + core packages (pinned to maximum versions) + optional packages [Linux/macOS/Windows]
  • Python 3.11 + core packages (pinned to specific versions) + a few optional packages [Linux only, mainly for testing old versions of optional packages]

As you can see, the CI jobs can't guarantee that PyGMT works with Python 3.10 + optional packages.

What about extending the number of the CI jobs to 9:

Activity

  1. added
    discussions
    on Nov 13, 2024
  2. weiji14 commented on Nov 13, 2024

    @weiji14
    Member
    • Python 3.10 + core packages (pinned to minimum versions) + optional packages (pinned to the minimum supported version if any, related to

    I've been wanting to create a matrix build using something like uv's --resolution lowest flag that will install the lowest possible version for all dependencies, both direct and indirect (transitive), or --resolution lowest-direct that will use the lowest compatible versions for all direct dependencies, while using the latest compatible versions for all other dependencies.

    The main complication is that we have non-PyPI dependencies - GMT (and also GDAL). We could set up a build such that GMT is pulled from conda-forge, and the rest are installed via uv, but that might need to be in a separate file to ci_tests.yaml.

  3. seisman commented on Nov 13, 2024

    @seisman
    MemberAuthor
  4. weiji14 commented on Nov 13, 2024

    @weiji14
    Member

    Yes, I thought about pixi, but it doesn't support a mode similar to uv's --lowest resolution yet. I've tried searching the issues but couldn't find it documented anywhere, though there is some work on integrating uv as the PyPI resolver in pixi at prefix-dev/pixi#1295.

  5. added this to the 0.14.0 milestone on Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    discussions

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions