@@ -22,7 +22,6 @@ on: [push]
2222
2323jobs :
2424 build :
25-
2625 runs-on : ubuntu-latest
2726 strategy :
2827 matrix :
3635
3736 - name : Checkout
3837 uses : actions/checkout@v2
38+
3939 - name : Checkout SupportScripts
4040 uses : actions/checkout@v2
4141 with :
5454
5555 - name : Install -pip
5656 run : |
57- python -m pip install --upgrade pip
57+ python -m pip install --upgrade pip setuptools wheel
5858 pip install 'pylint<2.5' python-coveralls 'coverage>=4.4,<5.0'
5959
6060 - name : Install SpiNNUtils
@@ -97,47 +97,42 @@ jobs:
9797
9898 - name : Preinstall requirements (2.7 Only)
9999 if : matrix.python-version == 2.7
100- run : |
101- pip install -r requirements.txt
100+ run : pip install -r requirements.txt
102101
103102 - name : Setup
104- run : |
105- python setup.py develop
103+ run : python setup.py develop
106104
107105 - name : Install requirements-test
108- run : |
109- pip install -r requirements-test.txt
106+ run : pip install -r requirements-test.txt
110107
111108 - name : Create a spynnaker.cfg
112109 run : |
113110 echo '[Machine]' > ~/.spynnaker.cfg
114111 echo "machineName = $SPINNAKER_BOARD_ADDRESS" >> ~/.spynnaker.cfg
115- echo "version = ${ SPINNAKER_BOARD_VERSION:-5} " >> ~/.spynnaker.cfg
112+ echo "version = $SPINNAKER_BOARD_VERSION" >> ~/.spynnaker.cfg
116113 echo '[Database]' >> ~/.spynnaker.cfg
117114 echo '[Simulation]' >> ~/.spynnaker.cfg
118115 echo '[Buffers]' >> ~/.spynnaker.cfg
116+ env :
117+ SPINNAKER_BOARD_ADDRESS : spinn-4.cs.man.ac.uk
118+ SPINNAKER_BOARD_VERSION : 5
119119
120120 - name : Test with pytest and coverage
121121 if : matrix.python-version == 3.6
122- run : |
123- pytest unittests --cov spynnaker
122+ run : pytest unittests --cov spynnaker
124123
125124 - name : Test with pytest
126125 if : matrix.python-version != 3.6
127- run : |
128- pytest unittests
126+ run : pytest unittests
129127
130128 - name : Lint with flake8
131- run : |
132- # run flake8
133- flake8 spynnaker unittests
129+ run : flake8 spynnaker unittests
134130
135131 - name : Lint with pylint
136132 # Broken in 2.7 as it can not find data_specification.exceptions
137133 if : matrix.python-version != 2.7
138134 # Note that there's special conditioning of the return code of pylint
139- run : |
140- pylint --output-format=colorized --disable=R,C spynnaker || exit $(($? & 35))
135+ run : pylint --output-format=colorized --disable=R,C spynnaker || exit $(($? & 35))
141136
142137 - name : Run rat copyright enforcement
143138 if : matrix.python-version == 3.6
@@ -146,13 +141,9 @@ jobs:
146141 support/rat.sh run
147142
148143 - name : Build documentation with sphinx
149- # TODO turn sphinx back on
150- if : matrix.python-version == 13.6
151- run : |
152- cd doc/source
153- sphinx-build -W -T -E -b html -d _build/doctrees-readthedocsdirhtml -D language=en . _build/html
154- sphinx-build -W -T -b json -d _build/doctrees-json -D language=en . _build/json
155- sphinx-build -W -T -b singlehtml -d _build/doctrees-readthedocssinglehtmllocalmedia -D language=en . _build/localmedia
144+ if : matrix.python-version == 3.6
145+ run : sphinx-build -W -T -E -b html -d _build/doctrees-readthedocsdirhtml -D language=en . _build/html
146+ working-directory : doc/source
156147
157148 - name : Run coveralls and report coverage
158149 if : matrix.python-version == 3.6
0 commit comments