Skip to content

Commit

Permalink
updated github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaspear committed Feb 21, 2024
1 parent 41352cf commit 39b474b
Showing 1 changed file with 18 additions and 24 deletions.
42 changes: 18 additions & 24 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04]
python-version:
- 3.10
- 3.11
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- name: Setup
Expand All @@ -23,28 +21,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 packages
- name: Install dependencies for Windows
if: ${{ matrix.os == 'windows-latest' }}
run: |
python -m pip install --upgrade pip
pip install pytest-cov torch numpy
pip install numpy Cython pytest-cov
pip install .
- name: Install dependencies for macOS
if: ${{ matrix.os == 'macos-latest' }}
run: |
python -m pip install --upgrade pip
pip install numpy Cython pytest-cov
pip install .
- name: Install dependencies for macOS
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
python -m pip install --upgrade pip
pip install numpy Cython pytest-cov
pip install .
- name: Unit tests
run: |
mkdir -p test_data
Expand Down

0 comments on commit 39b474b

Please sign in to comment.