File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1- name : Check code
1+ name : Code checks
22
33on :
44 push :
55 branches : [ main ]
66 pull_request :
77
88jobs :
9- validate :
9+ check :
1010
1111 runs-on : ubuntu-latest
1212 strategy :
1313 fail-fast : false
1414 matrix :
1515 python-version : ["3.8", "3.9", "3.10"]
1616
17+ name : Check Python${{ matrix.python-version }}
18+
1719 steps :
1820 - uses : actions/checkout@v2
1921 - name : install python
Original file line number Diff line number Diff line change 44 flake8 $(PROJECT ) --count --show-source --statistics
55
66test :
7- nosetests -v --with-coverage --cover-package=$(PROJECT ) tests
7+ PYTHON_VERSION=$$(python3 --version ) && \
8+ if echo " $$ {PYTHON_VERSION}" | grep -q " 3.10" ; \
9+ then pytest tests; \
10+ else nosetests -v --with-coverage --cover-package=$(PROJECT ) tests; \
11+ fi
You can’t perform that action at this time.
0 commit comments