Skip to content

Commit

Permalink
fix github action
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoGrin committed Jan 21, 2025
1 parent 5a7271c commit 72f6405
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
python-version: "3.9"
dependency-set: minimum
- os: macos-13 # macos-latest doesn't work with python 3.10
# https://github.com/actions/setup-python/issues/855
python-version: "3.9"
dependency-set: minimum
- os: ubuntu-latest
Expand Down Expand Up @@ -69,7 +70,7 @@ jobs:
deps = [d.strip(' "\'') for d in deps_match.group(1).strip().split('\n') if d.strip()]
min_reqs = []
for dep in deps:
match = re.match(r'([^>=<\s]+)\s*>=\s*([^,]+)', dep)
match = re.match(r'([^>=<\s]+)\s*>=\s*([^,\s"\']+)', dep)
if match:
package, min_ver = match.groups()
min_reqs.append(f"{package}=={min_ver}")
Expand All @@ -94,7 +95,7 @@ jobs:
max_reqs = []
for dep in deps:
# Check for maximum version constraint
max_version_match = re.search(r'([^>=<\s]+).*?<\s*([^,\s]+)', dep)
max_version_match = re.search(r'([^>=<\s]+).*?<\s*([^,\s"\']+)', dep)
if max_version_match:
# If there's a max version, use the version just below it
package, max_ver = max_version_match.groups()
Expand Down

0 comments on commit 72f6405

Please sign in to comment.