Skip to content

Commit 187d86a

Browse files
committed
Simplify CI to use only Python 3.11
- Remove Python version matrix (3.8, 3.9, 3.10, 3.11) - Use only Python 3.11 for all tests (matches Docker and production) - Simplify paper-qa installation (no conditional logic needed) - Fixes pandas>=2.1.1 compatibility issues with older Python versions This makes CI faster and avoids dependency conflicts with Python 3.8-3.10
1 parent bda8cc5 commit 187d86a

File tree

1 file changed

+8
-18
lines changed

1 file changed

+8
-18
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,17 @@ env:
1111

1212
jobs:
1313
test:
14-
name: Test Python ${{ matrix.python-version }}
14+
name: Test Python ${{ env.PYTHON_DEFAULT_VERSION }}
1515
runs-on: ubuntu-latest
16-
strategy:
17-
fail-fast: false
18-
matrix:
19-
python-version: ["3.8", "3.9", "3.10", "3.11"]
2016

2117
steps:
2218
- name: Checkout code
2319
uses: actions/checkout@v4
2420

25-
- name: Set up Python ${{ matrix.python-version }}
21+
- name: Set up Python ${{ env.PYTHON_DEFAULT_VERSION }}
2622
uses: actions/setup-python@v5
2723
with:
28-
python-version: ${{ matrix.python-version }}
24+
python-version: ${{ env.PYTHON_DEFAULT_VERSION }}
2925
cache: 'pip'
3026

3127
- name: Install system dependencies
@@ -89,18 +85,12 @@ jobs:
8985
pytz>=2023.3 \
9086
qdrant-client>=1.7.0
9187
92-
- name: Install paper-qa (version based on Python version)
88+
- name: Install paper-qa from GitHub
9389
run: |
94-
if [ "${{ matrix.python-version }}" == "3.11" ]; then
95-
# For Python 3.11, install latest paper-qa from GitHub (supports >=5.0.0)
96-
echo "Installing paper-qa from GitHub for Python 3.11"
97-
pip install --no-cache-dir git+https://github.com/Future-House/paper-qa.git || \
98-
pip install --no-cache-dir "paper-qa>=4.9.0,<5.0.0"
99-
else
100-
# For Python 3.8-3.10, install latest stable version compatible with older Python
101-
echo "Installing paper-qa 4.9.0 for Python ${{ matrix.python-version }}"
102-
pip install --no-cache-dir "paper-qa>=4.9.0,<5.0.0"
103-
fi
90+
# For Python 3.11, install latest paper-qa from GitHub (supports >=5.0.0)
91+
echo "Installing paper-qa from GitHub for Python 3.11"
92+
pip install --no-cache-dir git+https://github.com/Future-House/paper-qa.git || \
93+
pip install --no-cache-dir "paper-qa>=4.9.0,<5.0.0"
10494
10595
- name: Verify installation
10696
env:

0 commit comments

Comments
 (0)