Skip to content

Commit 9af6e76

Browse files
Add dependencies to unittests.yml pipeline
1 parent 621959f commit 9af6e76

1 file changed

Lines changed: 16 additions & 5 deletions

File tree

.github/workflows/unittests.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,31 @@ jobs:
2626
python-version: [ "3.11" ]
2727

2828
steps:
29-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@v4
3030
- name: Set up Python ${{ matrix.python-version }}
31-
uses: actions/setup-python@v4
31+
uses: actions/setup-python@v5
3232
with:
3333
python-version: ${{ matrix.python-version }}
34+
3435
- name: Install dependencies
3536
run: |
36-
python -m pip install --upgrade pip
37+
# Step 1: Upgrade pip and install core build and testing tools
38+
python -m pip install --upgrade pip setuptools wheel
3739
pip install flake8 pytest
38-
if [ -f requirements.txt ]; then sed -e '/rl_zoo3/d' -e '/stable-baselines3/d' requirements.txt > filtered_requirements.txt; pip install -r filtered_requirements.txt; fi
40+
41+
# Step 2: Install torch first
42+
pip install torch==2.2.2
43+
44+
# Step 3: Install PyG packages for Linux
45+
pip install torch-scatter torch-sparse torch-cluster torch-spline-conv -f https://data.pyg.org/whl/torch-2.2.2+cpu.html
46+
47+
# Step 4: Install the rest of the requirements from the original file
48+
# This ensures stable-baselines3 and all other packages are installed
49+
pip install -r requirements.txt
3950
4051
- name: Print Current Working Directory
4152
run: pwd
4253

4354
- name: Test with pytest
4455
run: |
45-
pytest
56+
pytest

0 commit comments

Comments
 (0)