From 1a3fcd538027504a42eb5ff864b2355f6a44e2c0 Mon Sep 17 00:00:00 2001 From: Joachim Metz Date: Sat, 16 Dec 2023 12:53:43 +0100 Subject: [PATCH] Changes for CI tests (#590) --- .github/workflows/test_tox.yml | 4 ++-- appveyor.yml | 37 +++++++++++++++++++++++++--------- 2 files changed, 30 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test_tox.yml b/.github/workflows/test_tox.yml index 924d2228..7e46eebe 100644 --- a/.github/workflows/test_tox.yml +++ b/.github/workflows/test_tox.yml @@ -60,8 +60,8 @@ jobs: strategy: matrix: include: - - python-version: '3.11' - toxenv: 'py311,coverage' + - python-version: '3.10' + toxenv: 'coverage' container: image: ubuntu:22.04 steps: diff --git a/appveyor.yml b/appveyor.yml index 13b76f0a..f10b2743 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,34 +1,53 @@ environment: matrix: - - DESCRIPTION: "Windows with 32-bit Python 3.11" + - DESCRIPTION: "Run tests on Windows with 32-bit Python 3.11" MACHINE_TYPE: "x86" APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022 PYTHON: "C:\\Python311" PYTHON_VERSION: "3.11" L2TBINARIES_TRACK: "dev" - - DESCRIPTION: "Windows with 64-bit Python 3.11" + TARGET: tests + - DESCRIPTION: "Run tests on Windows with 64-bit Python 3.11" MACHINE_TYPE: "amd64" APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022 PYTHON: "C:\\Python311-x64" PYTHON_VERSION: "3.11" L2TBINARIES_TRACK: "dev" - - DESCRIPTION: "Mac OS with Python 3.11" + TARGET: tests + - DESCRIPTION: "Build wheel on Windows with 32-bit Python 3.11" + MACHINE_TYPE: "amd64" + APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022 + PYTHON: "C:\\Python311-x64" + PYTHON_VERSION: "3.11" + L2TBINARIES_TRACK: "dev" + TARGET: wheel + - DESCRIPTION: "Build wheel on Windows with 64-bit Python 3.11" + MACHINE_TYPE: "amd64" + APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2022 + PYTHON: "C:\\Python311-x64" + PYTHON_VERSION: "3.11" + L2TBINARIES_TRACK: "dev" + TARGET: wheel + - DESCRIPTION: "Run tests on Mac OS with Python 3.11" APPVEYOR_BUILD_WORKER_IMAGE: macos-monterey HOMEBREW_NO_INSTALL_CLEANUP: 1 + TARGET: tests install: -- cmd: "%PYTHON%\\python.exe -m pip install -U pip setuptools twine wheel" +- cmd: "%PYTHON%\\python.exe -m pip install -U build pip setuptools twine wheel" - ps: If ($isWindows) { .\config\appveyor\install.ps1 } - sh: config/appveyor/install.sh build_script: -- cmd: "%PYTHON%\\python.exe setup.py bdist_wheel" +- cmd: IF [%TARGET%]==[wheel] ( + "%PYTHON%\\python.exe" -m build --wheel ) test_script: -- cmd: "%PYTHON%\\python.exe run_tests.py" -- cmd: IF EXIST "tests\\end-to-end.py" ( - set PYTHONPATH=. && - "%PYTHON%\\python.exe" "tests\\end-to-end.py" --debug -c "config\\end-to-end.ini" ) +- cmd: IF [%TARGET%]==[tests] ( + "%PYTHON%\\python.exe" run_tests.py && + IF EXIST "tests\\end-to-end.py" ( + set PYTHONPATH=. && + "%PYTHON%\\python.exe" "tests\\end-to-end.py" --debug -c "config\\end-to-end.ini" ) ) - sh: config/appveyor/runtests.sh artifacts: