removing py3.9 from testing atm because of numpy issue #60
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run tests | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11"] | |
max-parallel: 4 # Adjust as needed | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: x64 | |
- name: Check CMake version | |
run: cmake --version | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install torch | |
- name: Build and install the package | |
run: python setup.py install | |
- name: Run unit tests | |
run: | | |
cd test | |
python runtests.py |