-
Notifications
You must be signed in to change notification settings - Fork 38
CI: Modernize OS runner and Python versions #245
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 all commits
4e5fc71
4d3f1be
3887dd3
c663923
b2e4aa0
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 |
|---|---|---|
|
|
@@ -3,17 +3,16 @@ name: Test | |
| on: | ||
|
|
||
| pull_request: | ||
| branches: ~ | ||
| paths: | ||
| - '.github/workflows/test.yml' | ||
| - '.github/workflows/**' | ||
| - 'pyproject.toml' | ||
| - 'setup.cfg' | ||
| - '**.py' | ||
|
|
||
| push: | ||
| branches: [ main ] | ||
| paths: | ||
| - '.github/workflows/test.yml' | ||
| - '.github/workflows/**' | ||
| - 'pyproject.toml' | ||
| - 'setup.cfg' | ||
| - '**.py' | ||
|
|
@@ -32,11 +31,16 @@ jobs: | |
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: ["ubuntu-22.04"] | ||
| os: [ | ||
| 'ubuntu-latest', | ||
| ] | ||
| python-version: [ | ||
| '3.7', '3.13', | ||
| 'pypy-3.9', 'pypy-3.10', | ||
| '3.14', | ||
| 'pypy-3.11', | ||
| ] | ||
|
Comment on lines
+34
to
40
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. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Check for Python version requirements
echo "=== setup.cfg (if exists) ==="
if [ -f setup.cfg ]; then
cat setup.cfg | grep -A 5 -E "(python_requires|Programming Language)"
else
echo "File not found"
fi
echo -e "\n=== pyproject.toml (if exists) ==="
if [ -f pyproject.toml ]; then
cat pyproject.toml | grep -A 3 -E "(requires-python|requires_python)"
else
echo "File not found"
fi
echo -e "\n=== setup.py (if exists) ==="
if [ -f setup.py ]; then
cat setup.py | grep -A 2 "python_requires" || echo "python_requires not found"
fi
echo -e "\n=== Current .github/workflows/test.yml matrix (lines 34-43) ==="
if [ -f .github/workflows/test.yml ]; then
sed -n '34,43p' .github/workflows/test.yml
fiRepository: grafana-toolbox/grafana-client Length of output: 1238 Correct the test matrix to match declared Python version support (3.7–3.13). The project declares support for Python 3.7–3.13 in This change significantly reduces CI coverage and creates a mismatch between declared and tested compatibility. Restore testing for 3.8–3.13 in the main matrix, and clarify the intent behind 3.14 (beta testing, or removal of support for older versions?).
Contributor
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. The test matrix includes this snippet that extends it to cover Python 3.7. include:
- os: 'ubuntu-22.04'
python-version: '3.7' |
||
| include: | ||
| - os: 'ubuntu-22.04' | ||
| python-version: '3.7' | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
|
|
||
|
|
@@ -56,7 +60,7 @@ jobs: | |
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| python -m pip install --editable=.[test,develop] | ||
| python -m pip install --editable='.[test,develop]' | ||
|
|
||
| - name: Check code style | ||
| if: matrix.python-version != '3.7' && matrix.python-version != 'pypy-3.7' | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.