We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent be32fc5 commit ce4a7b1Copy full SHA for ce4a7b1
2 files changed
.github/workflows/validate.yml
@@ -1,19 +1,21 @@
1
-name: Check code
+name: Code checks
2
3
on:
4
push:
5
branches: [ main ]
6
pull_request:
7
8
jobs:
9
- validate:
+ check:
10
11
runs-on: ubuntu-latest
12
strategy:
13
fail-fast: false
14
matrix:
15
python-version: ["3.8", "3.9", "3.10"]
16
17
+ name: Check Python${{ matrix.python-version }}
18
+
19
steps:
20
- uses: actions/checkout@v2
21
- name: install python
Makefile
@@ -4,4 +4,8 @@ lint:
flake8 $(PROJECT) --count --show-source --statistics
test:
- nosetests -v --with-coverage --cover-package=$(PROJECT) tests
+ PYTHON_VERSION=$$(python3 --version) && \
+ if echo "$${PYTHON_VERSION}" | grep -q "3.10"; \
+ then pytest tests; \
+ else nosetests -v --with-coverage --cover-package=$(PROJECT) tests; \
+ fi
0 commit comments