From 7e28875a6670b7e8a4a02f41ef4ba8ac2c5f1ff0 Mon Sep 17 00:00:00 2001 From: Chengyu Liu Date: Thu, 16 Mar 2023 09:38:32 +0900 Subject: [PATCH 1/5] MAINT add python 3.11 to test --- .github/workflows/test-with-edm.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-with-edm.yml b/.github/workflows/test-with-edm.yml index 2f92622..022aa2c 100644 --- a/.github/workflows/test-with-edm.yml +++ b/.github/workflows/test-with-edm.yml @@ -17,7 +17,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - runtime: ['3.6', '3.8'] + runtime: ['3.6', '3.8', '3.11'] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 From 7561644a900222646eb41aaf25932b521f595219 Mon Sep 17 00:00:00 2001 From: Chengyu Liu Date: Thu, 16 Mar 2023 09:43:19 +0900 Subject: [PATCH 2/5] add 3.11 to etstool --- etstool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etstool.py b/etstool.py index 4ee5194..bf0bfef 100644 --- a/etstool.py +++ b/etstool.py @@ -83,7 +83,7 @@ import click -supported_runtimes = ['3.6', '3.8'] +supported_runtimes = ['3.6', '3.8', '3.11'] dependencies = { "numpy", From 3d078a2457174363501511d97f6fed24ac0d6f87 Mon Sep 17 00:00:00 2001 From: Chengyu Liu Date: Thu, 16 Mar 2023 10:00:44 +0900 Subject: [PATCH 3/5] MAINT: add pure python test flow --- .github/workflows/test-with-edm.yml | 2 +- .github/workflows/test-with-pypi.yml | 40 ++++++++++++++++++++++++++++ etstool.py | 2 +- 3 files changed, 42 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/test-with-pypi.yml diff --git a/.github/workflows/test-with-edm.yml b/.github/workflows/test-with-edm.yml index 022aa2c..2f92622 100644 --- a/.github/workflows/test-with-edm.yml +++ b/.github/workflows/test-with-edm.yml @@ -17,7 +17,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - runtime: ['3.6', '3.8', '3.11'] + runtime: ['3.6', '3.8'] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 diff --git a/.github/workflows/test-with-pypi.yml b/.github/workflows/test-with-pypi.yml new file mode 100644 index 0000000..070536d --- /dev/null +++ b/.github/workflows/test-with-pypi.yml @@ -0,0 +1,40 @@ +name: Test with PyPI + +on: [pull_request, workflow_dispatch] + +env: + PYTHONUNBUFFERED: 1 + +jobs: + + # Test against PyPI packages + test-with-pypi: + strategy: + matrix: + os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] + python-version: ['3.6', '3.8', '3.11'] + + runs-on: ${{ matrix.os }} + steps: + - name: Clone the Scimath source + uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install test dependencies + run: python -m pip install click + - name: Install package under test + run: python -m pip install . + - name: Run tests (Ubuntu) + if: matrix.os == 'ubuntu-latest' + run: | + mkdir testdir + cd testdir + xvfb-run -a python -X faulthandler -m unittest discover -v scimath + - name: Run tests (not Ubuntu) + if: matrix.os != 'ubuntu-latest' + run: | + mkdir testdir + cd testdir + python -X faulthandler -m unittest discover -v scimath diff --git a/etstool.py b/etstool.py index bf0bfef..4ee5194 100644 --- a/etstool.py +++ b/etstool.py @@ -83,7 +83,7 @@ import click -supported_runtimes = ['3.6', '3.8', '3.11'] +supported_runtimes = ['3.6', '3.8'] dependencies = { "numpy", From e48b45f37073b6f31def4333643adb6947d12ac5 Mon Sep 17 00:00:00 2001 From: Chengyu Liu Date: Thu, 16 Mar 2023 10:02:31 +0900 Subject: [PATCH 4/5] remove test versions --- .github/workflows/test-with-pypi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-with-pypi.yml b/.github/workflows/test-with-pypi.yml index 070536d..bb56de3 100644 --- a/.github/workflows/test-with-pypi.yml +++ b/.github/workflows/test-with-pypi.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] - python-version: ['3.6', '3.8', '3.11'] + python-version: ['3.11'] runs-on: ${{ matrix.os }} steps: From 6509827316707ed9d3960eea70c6967637c13264 Mon Sep 17 00:00:00 2001 From: Chengyu Liu Date: Fri, 17 Mar 2023 16:42:58 +0900 Subject: [PATCH 5/5] add demonstration of 3.6 error --- .github/workflows/test-with-pypi.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-with-pypi.yml b/.github/workflows/test-with-pypi.yml index bb56de3..1ad8e5b 100644 --- a/.github/workflows/test-with-pypi.yml +++ b/.github/workflows/test-with-pypi.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] - python-version: ['3.11'] + python-version: ['3.6, 3.11'] runs-on: ${{ matrix.os }} steps: