Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 17 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Weekly (on Monday) run to check libraries compatibility
schedule:
- cron: '0 3 * * 1'

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
Expand All @@ -30,6 +34,7 @@ jobs:
BUILD_COMMAND: --sdist
QT_BINDING: PyQt5==5.14.1
XVFB_RUN: xvfb-run -a
WARNING_FLAGS: "-W ignore::DeprecationWarning"

- name-suffix: "PySide6 wheel"
os: ubuntu-latest
Expand All @@ -52,14 +57,23 @@ jobs:
QT_BINDING: PyQt6
XVFB_RUN: ""

# binaries use PySide6==6.7.3
- name-suffix: "PySide6 wheel (for MacOS binaries)"
os: macos-latest
python-version: 3.12
BUILD_COMMAND: --wheel
QT_BINDING: PySide6
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"
# binaries use PySide6==6.9.1
- name-suffix: "PySide6 wheel (for Windows binaries)"
os: windows-latest
python-version: "3.13"
BUILD_COMMAND: --wheel
Expand Down Expand Up @@ -133,7 +147,7 @@ jobs:

- name: Generate source package or wheel
env:
MACOSX_DEPLOYMENT_TARGET: "10.9"
MACOSX_DEPLOYMENT_TARGET: "11"
run: |
python -m build ${{ matrix.BUILD_COMMAND }}
ls dist
Expand All @@ -145,4 +159,4 @@ jobs:
- name: Run the tests
run: |
cd ..
${{ matrix.XVFB_RUN }} python -m PyMca5.tests.TestAll
${{ matrix.XVFB_RUN }} python -W error ${{ matrix.WARNING_FLAGS }} -m PyMca5.tests.TestAll
3 changes: 1 addition & 2 deletions src/PyMca5/tests/TestAll.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#
# The PyMca X-Ray Fluorescence Toolkit
#
# Copyright (c) 2004-2023 European Synchrotron Radiation Facility
# Copyright (c) 2004-2026 European Synchrotron Radiation Facility
#
# This file is part of the PyMca X-ray Fluorescence Toolkit developed at
# the ESRF.
Expand Down Expand Up @@ -30,7 +30,6 @@
__contact__ = "[email protected]"
__license__ = "MIT"
__copyright__ = "European Synchrotron Radiation Facility, Grenoble, France"
import unittest
import os
import sys
import glob
Expand Down