Skip to content

Commit 41f4f3f

Browse files
Install project directly in "Test Main" workflow (#36)
Replace the "Install dependencies" step with "Upgrade pip" to avoid installing pinned dependencies from `requirements-ci.txt` for all test environments across different Python versions. This prevents dependency installation errors like: ERROR: No matching distribution found for numpy==2.3.1 This way, the project will be installed in each container the same way it would normally be installed locally, which ensures correct testing of the main branch for release readiness.
1 parent 8c3a482 commit 41f4f3f

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/test_main.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,8 @@ jobs:
3434
sleep 5; \
3535
done
3636
37-
- name: Install dependencies
38-
run: |
39-
python -m pip install --upgrade pip
40-
pip install --default-timeout=60 --retries=5 -r requirements-ci.txt
37+
- name: Upgrade pip
38+
run: python -m pip install --upgrade pip
4139

4240
- name: Install project package in editable mode
4341
run: |
@@ -73,10 +71,8 @@ jobs:
7371
sleep 5; \
7472
done
7573
76-
- name: Install dependencies
77-
run: |
78-
python -m pip install --upgrade pip
79-
pip install --default-timeout=60 --retries=5 -r requirements-ci.txt
74+
- name: Upgrade pip
75+
run: python -m pip install --upgrade pip
8076

8177
- name: Install project package in editable mode
8278
run: |

0 commit comments

Comments
 (0)