Update setuptools version (#158) #469
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: | |
tests_ubuntu: | |
strategy: | |
matrix: | |
python-version: ['3.7', '3.8', '3.9'] | |
os: [ubuntu-latest, ubuntu-20.04] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
sudo apt-get install libblas-dev liblapack-dev | |
python -m pip install --upgrade pip | |
python -m pip install .[test] | |
- name: Test with pytest | |
run: | | |
pytest tests/test_examples.py | |
pytest tests/test_builder.py | |
pytest tests/test_models.py | |
pytest tests/test_optas_utils.py | |
pytest tests/test_optimization.py | |
pytest tests/test_solver.py | |
pytest tests/test_spatialmath.py | |
pytest tests/test_sx_container.py | |
tests_windows: | |
strategy: | |
matrix: | |
python-version: ['3.8', '3.9'] | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install .[test] | |
- name: Test with pytest | |
run: | | |
pytest tests/test_examples.py | |
pytest tests/test_builder.py | |
pytest tests/test_models.py | |
pytest tests/test_optas_utils.py | |
pytest tests/test_optimization.py | |
pytest tests/test_solver.py | |
pytest tests/test_spatialmath.py | |
pytest tests/test_sx_container.py | |
tests_macos: | |
strategy: | |
matrix: | |
python-version: ['3.9'] | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
brew install openblas | |
brew install lapack | |
python -m pip install --upgrade pip | |
python -m pip install .[test] | |
- name: Test with pytest | |
run: | | |
pytest tests/test_examples.py | |
pytest tests/test_builder.py | |
pytest tests/test_models.py | |
pytest tests/test_optas_utils.py | |
pytest tests/test_optimization.py | |
pytest tests/test_solver.py | |
pytest tests/test_spatialmath.py | |
pytest tests/test_sx_container.py |