-
Notifications
You must be signed in to change notification settings - Fork 208
Add a upstream workflow with a dispatch trigger; follow SPEC0 #1245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 6 commits
46389ae
c93ad47
b167c07
1329aef
4dfdef4
a205aa8
26c4967
2c36d00
2b71506
4b83b00
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| name: Upstream | ||
|
|
||
| # Only on pushes to main, tags, or workflow dispatches | ||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| tags: | ||
| - '*' | ||
| paths: | ||
| # Only run test and docker publish if some code have changed | ||
| - 'setup.py' | ||
| - 'setup.cfg' | ||
| - 'src/titiler/**' | ||
| - '.pre-commit-config.yaml' | ||
| - '.github/codecov.yml' | ||
| - 'dockerfiles/**' | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| test-upstream: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| python-version: ['3.13'] | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v5 | ||
|
|
||
| - name: Set up uv | ||
| uses: astral-sh/setup-uv@v6 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
|
|
||
| - name: Test titiler.xarray | ||
| working-directory: src/titiler/xarray | ||
| run: | | ||
| uv run --group test --group upstream pytest --cov-report=xml --cov-append --cov-report=term-missing | ||
maxrjones marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -2,7 +2,7 @@ | |||||||||||||||||||||||||||
| name = "titiler-xarray" | ||||||||||||||||||||||||||||
| description = "Xarray plugin for TiTiler." | ||||||||||||||||||||||||||||
| readme = "README.md" | ||||||||||||||||||||||||||||
| requires-python = ">=3.10" | ||||||||||||||||||||||||||||
| requires-python = ">=3.11" | ||||||||||||||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @maxrjones there is something I'm not sure to understand here we set python>=3.11 but CI tests still run 3.10 in the matrix without any issue 😬 cc @hrodmn
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think the tests are actually using a newer python in the uv virtual environment than the runner python specified in the matrix. Looking at https://github.com/developmentseed/titiler/actions/runs/18791545420/job/53622773007, I see: I can take a more detailed look later in the day if helpful.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ah @vincentsarago I think you are missing these lines in your primary CI workflow to tell uv which python version to use:
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. we do have those line titiler/.github/workflows/ci.yml Lines 29 to 41 in fff3608
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. #1254 shows the difference in behavior between the two configurations. the existing method does not seem to persist the specified python version across steps |
||||||||||||||||||||||||||||
| authors = [ | ||||||||||||||||||||||||||||
| {name = "Vincent Sarago", email = "[email protected]"}, | ||||||||||||||||||||||||||||
| {name = "Aimee Barciauskas", email = "[email protected]"}, | ||||||||||||||||||||||||||||
|
|
@@ -21,7 +21,6 @@ classifiers = [ | |||||||||||||||||||||||||||
| "Intended Audience :: Science/Research", | ||||||||||||||||||||||||||||
| "License :: OSI Approved :: MIT License", | ||||||||||||||||||||||||||||
| "Programming Language :: Python :: 3", | ||||||||||||||||||||||||||||
| "Programming Language :: Python :: 3.10", | ||||||||||||||||||||||||||||
| "Programming Language :: Python :: 3.11", | ||||||||||||||||||||||||||||
| "Programming Language :: Python :: 3.12", | ||||||||||||||||||||||||||||
| "Programming Language :: Python :: 3.13", | ||||||||||||||||||||||||||||
|
|
@@ -62,6 +61,7 @@ s3 = [ | |||||||||||||||||||||||||||
| http = [ | ||||||||||||||||||||||||||||
| "aiohttp", | ||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||
| [dependency-groups] | ||||||||||||||||||||||||||||
| test = [ | ||||||||||||||||||||||||||||
| "pytest", | ||||||||||||||||||||||||||||
| "pytest-cov", | ||||||||||||||||||||||||||||
|
|
@@ -74,6 +74,13 @@ test = [ | |||||||||||||||||||||||||||
| "aiohttp", | ||||||||||||||||||||||||||||
| "requests", | ||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||
| upstream = [ | ||||||||||||||||||||||||||||
| 'xarray @ git+https://github.com/pydata/xarray', | ||||||||||||||||||||||||||||
| 'universal_pathlib @ git+https://github.com/fsspec/universal_pathlib', | ||||||||||||||||||||||||||||
| 'numcodecs @ git+https://github.com/zarr-developers/numcodecs', | ||||||||||||||||||||||||||||
| 'ujson @ git+https://github.com/ultrajson/ultrajson', | ||||||||||||||||||||||||||||
| 'zarr @ git+https://github.com/zarr-developers/zarr-python', | ||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||
vincentsarago marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
| [project.urls] | ||||||||||||||||||||||||||||
| Homepage = "https://developmentseed.org/titiler/" | ||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.