From 517f48c73189fe24f35db02bbd40d100e1dacc6b Mon Sep 17 00:00:00 2001 From: Pyrox Date: Sun, 28 Jul 2024 21:54:11 -0400 Subject: [PATCH] update test scripts --- .github/workflows/tests.yml | 10 +++++----- pytest.ini | 2 ++ test.bat | 2 +- test.sh | 2 +- 4 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 pytest.ini diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 93d8a60..de91273 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -7,10 +7,10 @@ jobs: strategy: fail-fast: false matrix: - python-version: [3.7, 3.8, 3.9] - os: [macOs-latest, ubuntu-latest, windows-latest] + python-version: [3.7, 3.8, 3.9, 3.10, 3.11, 3.12] + os: [macos-latest, ubuntu-latest, windows-latest] exclude: - - os: macOs-latest + - os: macos-latest python-version: 3.7 runs-on: ${{ matrix.os }} @@ -28,8 +28,8 @@ jobs: - name: test run: | pip freeze - nosetests --verbosity=3 --with-coverage --cover-package pyexcel_xls --cover-package tests tests --with-doctest --doctest-extension=.rst README.rst docs/source pyexcel_xls + pytest - name: Upload coverage uses: codecov/codecov-action@v1 with: - name: ${{ matrix.os }} Python ${{ matrix.python-version }} \ No newline at end of file + name: ${{ matrix.os }} Python ${{ matrix.python-version }} diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000..f731ef4 --- /dev/null +++ b/pytest.ini @@ -0,0 +1,2 @@ +[pytest] +addopts = --cov=pyexcel_xls --doctest-glob="*.rst" tests/ README.rst docs/source pyexcel_xls diff --git a/test.bat b/test.bat index 823adb3..3387ae9 100644 --- a/test.bat +++ b/test.bat @@ -1,2 +1,2 @@ pip freeze -nosetests --with-coverage --cover-package pyexcel_xls --cover-package tests tests --with-doctest --doctest-extension=.rst README.rst docs/source pyexcel_xls +pytest diff --git a/test.sh b/test.sh index fda8353..9210de0 100644 --- a/test.sh +++ b/test.sh @@ -1,3 +1,3 @@ #/bin/bash pip freeze -nosetests --with-coverage --cover-package pyexcel_xls --cover-package tests tests --with-doctest --doctest-extension=.rst README.rst docs/source pyexcel_xls +pytest