Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PR: CI: Add workflow to run tests with PyQt6/PySide6 #23118

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

rear1019
Copy link
Contributor

Description of Changes

This is a draft to add PyQt6/PySide6 to the CI as suggested in PR #22620:

  • The workflow file based on the existing one for Linux.
  • For now the tests run on Linux only.
  • Only pip-based installation is used as conda has no PyQt6 package yet.
  • The tests don’t run at all with PySide6 (SEGFAULT at collection phase of pytest). I can reproduce it locally, but haven’t looked into it.
  • The mostly run with PyQt6, however, there is a SEGFAULT at the end (haven’t looked into it).

Issue(s) Resolved

Affirmation

By submitting this Pull Request or typing my (user)name below,
I affirm the Developer Certificate of Origin
with respect to all commits and content included in this PR,
and understand I am releasing the same under Spyder's MIT (Expat) license.

I certify the above statement is true and correct:

rear1019

push:
branches:
- master
- qt6_ci # for testing only
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using a cron-based trigger is probably more sensible for now?

The qt6_ci is for testing only and will be removed

Comment on lines +152 to +155
# .github/scripts/run_tests.sh || \
# .github/scripts/run_tests.sh || \
# .github/scripts/run_tests.sh || \
.github/scripts/run_tests.sh
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented out for faster testing.

Comment on lines +141 to +142
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For testing only, will be re-added

- name: Run tests
shell: bash -l {0}
env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For testing only, will be re-added

For now the tests run on Linux only. Only pip-based installation is used
as conda has no PyQt6 package yet. The workflow file based on the
existing one for Linux.
Fix 'extras_require' in setup.py to fix the warning. This requires fixes
for the parsing of dependencies in test_dependencies_in_sync.py: Use the
'packaging' module which simplifies the code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant