Skip to content

Commit

Permalink
updated github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaspear committed Oct 30, 2023
1 parent 3395b9b commit 57806b5
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 22 deletions.
39 changes: 18 additions & 21 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ jobs:
matrix:
os: [ubuntu-20.04]
python-version:
- 3.7
- 3.8
- 3.9
- 3.10
- 3.11
steps:
Expand All @@ -26,24 +23,24 @@ jobs:
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Install dependencies for Windows
if: ${{ matrix.os == 'windows-latest' }}
run: |
pip install torch==1.6.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
- name: Install dependencies for macOS
if: ${{ matrix.os == 'macos-latest' }}
run: |
brew install libomp
- name: Install packages
run: |
python -m pip install --upgrade pip
pip install numpy Cython pytest-cov gym==0.17.2 flask onnxruntime stable-baselines3
- name: Build Cython
run: |
pip install -U protobuf==3.20.1 # temporarily dependency fix
pip install numpy # temporarily dependency fix
pip install -e .
python setup.py build_ext --inplace --define CYTHON_TRACE
# - name: Install dependencies for Windows
# if: ${{ matrix.os == 'windows-latest' }}
# run: |
# pip install torch==1.6.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
# - name: Install dependencies for macOS
# if: ${{ matrix.os == 'macos-latest' }}
# run: |
# brew install libomp
# - name: Install packages
# run: |
# python -m pip install --upgrade pip
# pip install numpy Cython pytest-cov gym==0.17.2 flask onnxruntime stable-baselines3
# - name: Build Cython
# run: |
# pip install -U protobuf==3.20.1 # temporarily dependency fix
# pip install numpy # temporarily dependency fix
# pip install -e .
# python setup.py build_ext --inplace --define CYTHON_TRACE
- name: Unit tests
run: |
mkdir -p test_data
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
license='MIT',
classifiers=[],
package_dir={"": "src"},
python_requires=">=3.11",
python_requires=">=3.10",
install_requires=[
"d3rlpy>=2.0.4"
],
Expand Down

0 comments on commit 57806b5

Please sign in to comment.