-
Notifications
You must be signed in to change notification settings - Fork 5
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
Hotfix contour #24
Merged
Merged
Hotfix contour #24
Changes from 23 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
b501b60
separated workflows and extended python versions
cvanelteren a8798a2
added a main matrix to different python versions
cvanelteren b9f08d2
added py versions to docs and linter
cvanelteren 1ecb15c
just run job on push without checkout all
cvanelteren 34e1794
main workflow runs build and docs
cvanelteren 303a3e7
fixed python versions
cvanelteren 8b4c805
fixed python versions
cvanelteren f2bf756
Fixed contour
cvanelteren 8afd275
fix
cvanelteren 8b5a604
black formatting
cvanelteren bd4cd7f
more robust prop cycling
cvanelteren 56f5222
remove face parameter
cvanelteren 1ae8416
black formatting
cvanelteren a2a0690
use native calls
cvanelteren f193e66
Merge branch 'main' into hotfix-contour
cvanelteren 5749158
added mpl flag
cvanelteren 6a67e88
Robust fix
cvanelteren 330b9df
clean-up
cvanelteren 27630f7
remove spurious extra call
cvanelteren a88da58
add future todo in unittest
cvanelteren d38d5b3
Merge branch 'extend-py-version' into devel
cvanelteren a7678dd
Merge branch 'hotfix-contour' into devel
cvanelteren dcbdb05
Merge branch 'devel' into hotfix-contour
cvanelteren d0adafd
Merge branch 'devel' into hotfix-contour
cvanelteren File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ on: | |
branches: [main] | ||
|
||
jobs: | ||
build: | ||
linter: | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 15 | ||
steps: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
name: Matrix Test | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
get-python-versions: | ||
runs-on: ubuntu-latest | ||
outputs: | ||
python-versions: ${{ steps.set-versions.outputs.python-versions }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Install dependencies | ||
run: pip install tomli | ||
|
||
- id: set-versions | ||
run: | | ||
# Create a Python script to read and parse versions | ||
cat > get_versions.py << 'EOF' | ||
import tomli | ||
import re | ||
import json | ||
|
||
# Read pyproject.toml | ||
with open("pyproject.toml", "rb") as f: | ||
data = tomli.load(f) | ||
|
||
# Get Python version requirement | ||
python_req = data["project"]["requires-python"] | ||
|
||
# Parse min and max versions | ||
min_version = re.search(r">=(\d+\.\d+)", python_req) | ||
max_version = re.search(r"<(\d+\.\d+)", python_req) | ||
|
||
versions = [] | ||
if min_version and max_version: | ||
# Convert version strings to tuples | ||
min_v = tuple(map(int, min_version.group(1).split("."))) | ||
max_v = tuple(map(int, max_version.group(1).split("."))) | ||
|
||
# Generate version list | ||
current = min_v | ||
while current < max_v: | ||
versions.append(".".join(map(str, current))) | ||
current = (current[0], current[1] + 1) | ||
|
||
# Print as JSON array | ||
print(json.dumps(versions)) | ||
EOF | ||
|
||
# Run the script and capture output | ||
VERSIONS=$(python3 get_versions.py) | ||
echo "Detected versions: ${VERSIONS}" # Debug output | ||
echo "python-versions=${VERSIONS}" >> $GITHUB_OUTPUT | ||
|
||
build: | ||
needs: get-python-versions | ||
strategy: | ||
matrix: | ||
python-version: ${{ fromJson(needs.get-python-versions.outputs.python-versions) }} | ||
fail-fast: false | ||
uses: ./.github/workflows/build-ultraplot.yml | ||
with: | ||
python-version: ${{ matrix.python-version }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
ultraplot/tests/baseline | ||
# VIM extras | ||
.session.vim | ||
.vimsession | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the upper bound here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
basemap won't install for python>=3.12. Eventhough we don't have a hard requirement for it some of the tests will fail. I contacted the people from basemap and they are working on a fix. I put a crude PR up there that monkey patches basemap for these higher versions, but it isn't (and will likely never be) merged.
I checked the code with this monkey patch for basemap and ultraplot will pass all the tests for these higher versions.