Skip to content

Commit a072333

Browse files
Merge pull request #1168 from silx-kit/warnings_in_tests
add -W error to CI
2 parents c3e878f + 829bb4b commit a072333

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ on:
1313
# Allows you to run this workflow manually from the Actions tab
1414
workflow_dispatch:
1515

16+
# Weekly (on Monday) run to check libraries compatibility
17+
schedule:
18+
- cron: '0 3 * * 1'
19+
1620
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
1721
jobs:
1822
# This workflow contains a single job called "build"
@@ -30,6 +34,7 @@ jobs:
3034
BUILD_COMMAND: --sdist
3135
QT_BINDING: PyQt5==5.14.1
3236
XVFB_RUN: xvfb-run -a
37+
WARNING_FLAGS: "-W ignore::DeprecationWarning"
3338

3439
- name-suffix: "PySide6 wheel"
3540
os: ubuntu-latest
@@ -52,14 +57,23 @@ jobs:
5257
QT_BINDING: PyQt6
5358
XVFB_RUN: ""
5459

60+
# binaries use PySide6==6.7.3
61+
- name-suffix: "PySide6 wheel (for MacOS binaries)"
62+
os: macos-latest
63+
python-version: 3.12
64+
BUILD_COMMAND: --wheel
65+
QT_BINDING: PySide6
66+
XVFB_RUN: ""
67+
5568
- name-suffix: "PyQt6 wheel"
5669
os: windows-latest
5770
python-version: "3.13"
5871
BUILD_COMMAND: --wheel
5972
QT_BINDING: PyQt6
6073
XVFB_RUN: ""
6174

62-
- name-suffix: "PySide6 wheel"
75+
# binaries use PySide6==6.9.1
76+
- name-suffix: "PySide6 wheel (for Windows binaries)"
6377
os: windows-latest
6478
python-version: "3.13"
6579
BUILD_COMMAND: --wheel
@@ -133,7 +147,7 @@ jobs:
133147
134148
- name: Generate source package or wheel
135149
env:
136-
MACOSX_DEPLOYMENT_TARGET: "10.9"
150+
MACOSX_DEPLOYMENT_TARGET: "11"
137151
run: |
138152
python -m build ${{ matrix.BUILD_COMMAND }}
139153
ls dist
@@ -145,4 +159,4 @@ jobs:
145159
- name: Run the tests
146160
run: |
147161
cd ..
148-
${{ matrix.XVFB_RUN }} python -m PyMca5.tests.TestAll
162+
${{ matrix.XVFB_RUN }} python -W error ${{ matrix.WARNING_FLAGS }} -m PyMca5.tests.TestAll

src/PyMca5/tests/TestAll.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#
33
# The PyMca X-Ray Fluorescence Toolkit
44
#
5-
# Copyright (c) 2004-2023 European Synchrotron Radiation Facility
5+
# Copyright (c) 2004-2026 European Synchrotron Radiation Facility
66
#
77
# This file is part of the PyMca X-ray Fluorescence Toolkit developed at
88
# the ESRF.
@@ -30,7 +30,6 @@
3030
__contact__ = "[email protected]"
3131
__license__ = "MIT"
3232
__copyright__ = "European Synchrotron Radiation Facility, Grenoble, France"
33-
import unittest
3433
import os
3534
import sys
3635
import glob

0 commit comments

Comments
 (0)