Skip to content

Commit ce4a7b1

Browse files
make test step work with python 3.10
1 parent be32fc5 commit ce4a7b1

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/validate.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,21 @@
1-
name: Check code
1+
name: Code checks
22

33
on:
44
push:
55
branches: [ main ]
66
pull_request:
77

88
jobs:
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

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@ lint:
44
flake8 $(PROJECT) --count --show-source --statistics
55

66
test:
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

0 commit comments

Comments
 (0)