@@ -7,16 +7,17 @@ name: build
77on :
88 push :
99 branches : [ master ]
10- pull_request :
11- branches : [ master ]
10+ # pull_request:
11+ # branches: [ master ]
1212
1313jobs :
1414 # Run tests on different versions of python
1515 unittest :
16- runs-on : ubuntu-latest
16+ runs-on : ${{ matrix.os }}
1717 strategy :
1818 matrix :
19- python-version : [3.6, 3.7, 3.8]
19+ os : [windows-latest, ubuntu-latest, macos-latest]
20+ python-version : [3.6, 3.7, 3.8, 3.9]
2021
2122 steps :
2223 - uses : actions/checkout@v2
2728 - name : Install dependencies
2829 run : |
2930 python -m pip install --upgrade pip
30- pip install -r .github/dev_requirements.txt
31- pip install .
31+ pip install .[dev]
3232 pip install pytest-timeout
3333 pip install pytest-xvfb
3434 - name : Test with pytest
5151 - name : Install dependencies
5252 run : |
5353 python -m pip install --upgrade pip
54- pip install -r .github/dev_requirements.txt
5554 - name : Run coverage
5655 run : |
57- pip install .
56+ pip install .[dev]
5857 pip install pytest-xvfb
5958 pip install pytest-timeout
6059 pytest --cov --cov-config=./spatialmath/.coveragerc --cov-report xml
7877 - name : Install dependencies
7978 run : |
8079 python -m pip install --upgrade pip
81- pip install -r .github/dev_requirements.txt
82- pip install .
80+ pip install .[dev,docs]
8381 pip install git+https://github.com/petercorke/sphinx-autorun.git
8482 pip install sympy
8583 sudo apt-get install graphviz
0 commit comments