Skip to content

Commit 517f48c

Browse files
committed
update test scripts
1 parent 9675b43 commit 517f48c

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

.github/workflows/tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ jobs:
77
strategy:
88
fail-fast: false
99
matrix:
10-
python-version: [3.7, 3.8, 3.9]
11-
os: [macOs-latest, ubuntu-latest, windows-latest]
10+
python-version: [3.7, 3.8, 3.9, 3.10, 3.11, 3.12]
11+
os: [macos-latest, ubuntu-latest, windows-latest]
1212
exclude:
13-
- os: macOs-latest
13+
- os: macos-latest
1414
python-version: 3.7
1515

1616
runs-on: ${{ matrix.os }}
@@ -28,8 +28,8 @@ jobs:
2828
- name: test
2929
run: |
3030
pip freeze
31-
nosetests --verbosity=3 --with-coverage --cover-package pyexcel_xls --cover-package tests tests --with-doctest --doctest-extension=.rst README.rst docs/source pyexcel_xls
31+
pytest
3232
- name: Upload coverage
3333
uses: codecov/codecov-action@v1
3434
with:
35-
name: ${{ matrix.os }} Python ${{ matrix.python-version }}
35+
name: ${{ matrix.os }} Python ${{ matrix.python-version }}

pytest.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[pytest]
2+
addopts = --cov=pyexcel_xls --doctest-glob="*.rst" tests/ README.rst docs/source pyexcel_xls

test.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
pip freeze
2-
nosetests --with-coverage --cover-package pyexcel_xls --cover-package tests tests --with-doctest --doctest-extension=.rst README.rst docs/source pyexcel_xls
2+
pytest

test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#/bin/bash
22
pip freeze
3-
nosetests --with-coverage --cover-package pyexcel_xls --cover-package tests tests --with-doctest --doctest-extension=.rst README.rst docs/source pyexcel_xls
3+
pytest

0 commit comments

Comments
 (0)