From 82d5eda1c1259200911cdd6e205fe0818d052261 Mon Sep 17 00:00:00 2001 From: "V. Armando Sole" Date: Wed, 22 Jan 2025 08:11:05 +0100 Subject: [PATCH 1/3] Try to add windows testing to github workflows/ci.yml --- .github/workflows/ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 19e539b3a..f84b5bfca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,6 +52,20 @@ jobs: QT_BINDING: PyQt6 XVFB_RUN: "" + - name-suffix: "PyQt6 wheel" + os: windows-latest + python-version: "3.13" + BUILD_COMMAND: --wheel + QT_BINDING: PyQt6 + XVFB_RUN: "" + + - name-suffix: "PySide6 wheel" + os: windows-latest + python-version: "3.13" + BUILD_COMMAND: --wheel + QT_BINDING: PySide6 + XVFB_RUN: "" + # Steps represent a sequence of tasks that will be executed as part of the job steps: # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it From cf43e78128cac10ca063285ce1f6fb8c51164c5a Mon Sep 17 00:00:00 2001 From: "V. Armando Sole" Date: Wed, 22 Jan 2025 08:21:40 +0100 Subject: [PATCH 2/3] Remove case approach --- .github/workflows/ci.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f84b5bfca..3ea074d1b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -74,9 +74,8 @@ jobs: fetch-depth: 0 - name: Install OS dependencies + if: runner.os == 'Linux' run: | - case "${{ runner.os }}" in - Linux) sudo apt-get update -yy sudo apt-get install -yy \ libxkbcommon-x11-0 \ @@ -97,13 +96,6 @@ jobs: libxcb1 #export QT_QPA_PLATFORM=offscreen export DISPLAY=:99.0 - ;; - macOS) - # curl -o miniconda_installer.sh "https://repo.anaconda.com/miniconda/Miniconda3-latest-MacOSX-x86_64.sh" - # bash miniconda_installer.sh -b -p miniconda - # export PATH="`pwd`/miniconda/bin":$PATH - ;; - esac - name: Set up Python uses: actions/setup-python@v2 @@ -140,6 +132,8 @@ jobs: pip list - name: Generate source package or wheel + env: + MACOSX_DEPLOYMENT_TARGET: "10.9" run: | python -m build ${{ matrix.BUILD_COMMAND }} ls dist From 55167604aaa9ba7eb0e2e07592fd1d600f4d03e1 Mon Sep 17 00:00:00 2001 From: "V. Armando Sole" Date: Wed, 22 Jan 2025 08:33:24 +0100 Subject: [PATCH 3/3] Remove loop --- .github/workflows/ci.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3ea074d1b..a28c1d835 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -138,12 +138,9 @@ jobs: python -m build ${{ matrix.BUILD_COMMAND }} ls dist - - name: Install from source package + - name: Install run: | - for filename in dist/*ca5-5.*; do - echo "\nInstall $filename" - pip install --pre $filename - done + pip install --pre "$(ls dist/*ca5-5.*)" - name: Run the tests run: |