|
11 | 11 |
|
12 | 12 | jobs: |
13 | 13 | test: |
14 | | - name: Test Python ${{ matrix.python-version }} |
| 14 | + name: Test Python ${{ env.PYTHON_DEFAULT_VERSION }} |
15 | 15 | runs-on: ubuntu-latest |
16 | | - strategy: |
17 | | - fail-fast: false |
18 | | - matrix: |
19 | | - python-version: ["3.8", "3.9", "3.10", "3.11"] |
20 | 16 |
|
21 | 17 | steps: |
22 | 18 | - name: Checkout code |
23 | 19 | uses: actions/checkout@v4 |
24 | 20 |
|
25 | | - - name: Set up Python ${{ matrix.python-version }} |
| 21 | + - name: Set up Python ${{ env.PYTHON_DEFAULT_VERSION }} |
26 | 22 | uses: actions/setup-python@v5 |
27 | 23 | with: |
28 | | - python-version: ${{ matrix.python-version }} |
| 24 | + python-version: ${{ env.PYTHON_DEFAULT_VERSION }} |
29 | 25 | cache: 'pip' |
30 | 26 |
|
31 | 27 | - name: Install system dependencies |
@@ -89,18 +85,12 @@ jobs: |
89 | 85 | pytz>=2023.3 \ |
90 | 86 | qdrant-client>=1.7.0 |
91 | 87 | |
92 | | - - name: Install paper-qa (version based on Python version) |
| 88 | + - name: Install paper-qa from GitHub |
93 | 89 | 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" |
104 | 94 | |
105 | 95 | - name: Verify installation |
106 | 96 | env: |
|
0 commit comments