-
Notifications
You must be signed in to change notification settings - Fork 27
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
fix: CI fails on python 3.7 #170
Conversation
Caution Review failedThe pull request is closed. WalkthroughThe pull request modifies the CI configuration in the GitHub Actions workflow. The Changes
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
.github/workflows/ci.yml (1)
32-32
: Consider pinning the Poetry version.To ensure consistent CI behavior, consider pinning the Poetry version. This prevents potential issues if Poetry releases breaking changes.
- pip install poetry + pip install poetry==1.7.1 # or your preferred stable version
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
.github/workflows/ci.yml
(3 hunks).github/workflows/required-labels.yml
(2 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (1)
- GitHub Check: test (Python 3.8 on macOS)
🔇 Additional comments (3)
.github/workflows/required-labels.yml (1)
Line range hint
17-26
: LGTM! Label requirements updated correctly.The addition of the 'feat' label and the corresponding message update are consistent with the PR objectives.
.github/workflows/ci.yml (2)
55-55
: LGTM! Formatting improvement.The formatting change from
[ test ]
to[test]
improves consistency.
18-20
: Verify Ubuntu 22.04 compatibility with Python 3.7.The change from
ubuntu-latest
toubuntu-22.04
is good for reproducibility. However, let's verify that Python 3.7 is fully supported on Ubuntu 22.04 since the PR aims to fix CI failures on Python 3.7.Run this script to check Python 3.7 availability:
✅ Verification successful
Python 3.7 compatibility with Ubuntu 22.04 is confirmed
While Python 3.7 is not available in Ubuntu 22.04 repositories, this won't affect the workflow because:
- The workflow uses
actions/setup-python@v4
which downloads and installs Python directly from python.org- This approach bypasses system package limitations and ensures consistent Python installations across all supported versions
🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Check Python 3.7 availability on Ubuntu 22.04 # Note: This is a simplified check. In production, you'd want to test in a proper Ubuntu 22.04 container # Check if Python 3.7 is available in Ubuntu 22.04 repositories curl -s https://packages.ubuntu.com/jammy/python3.7 | grep "No such package" # Check for any known compatibility issues gh search issues "Python 3.7 Ubuntu 22.04" --repo actions/setup-pythonLength of output: 103
Script:
#!/bin/bash # Check setup-python configuration in the workflow rg "uses: actions/setup-python" .github/workflows/ci.yml -A 3Length of output: 207
@@ -22,4 +22,4 @@ jobs: | |||
chore | |||
documentation | |||
add_comment: true | |||
message: "Requires label: feature, enhancement, fix, bugfix, bug, chore, documentation." |
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.
这个不要改
.github/workflows/ci.yml
Outdated
@@ -52,7 +52,7 @@ jobs: | |||
name: "Test success" | |||
if: always() | |||
runs-on: ubuntu-latest | |||
needs: [ test ] |
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.
不要改
@@ -16,7 +16,7 @@ jobs: | |||
fail-fast: false | |||
matrix: | |||
python-version: [ "3.7","3.8", "3.9", "3.10", "3.11", "3.12" ] | |||
os: [ "ubuntu-latest" ] | |||
os: [ "ubuntu-22.04" ] | |||
os-label: [ "Ubuntu" ] | |||
include: | |||
- { python-version: "3.8", os: "windows-latest", os-label: "Windows" } |
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.
在这里加 3.7 的实现吧,上面的不要改
Summary by CodeRabbit