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

Remove PySide as a test dependency #1791

Merged
merged 3 commits into from
May 7, 2024
Merged

Conversation

mdickinson
Copy link
Member

@mdickinson mdickinson commented Apr 30, 2024

Since #1788 and #1792, we should no longer need a working Qt backend when testing. Accordingly, this PR:

  • removes PySide6 as a test dependency
  • removes the need to apt-get Qt packages on Ubuntu runners
  • removes the use of xvfb-run on Ubuntu runners

@mdickinson
Copy link
Member Author

This was a bit premature: tests pass, but some of those tests are being skipped. See #1792 for a fix.

@mdickinson
Copy link
Member Author

This was a bit premature: tests pass, but some of those tests are being skipped. See #1792 for a fix.

#1792 was merged; we're back to having no skipped tests.

@mdickinson mdickinson requested a review from flongford May 7, 2024 09:53
Copy link

@flongford flongford left a comment

Choose a reason for hiding this comment

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

LGTM!

Comment on lines -23 to -35
- name: Install Linux packages for Qt support
run: |
sudo apt-get update
sudo apt-get install libegl1
sudo apt-get install libxkbcommon-x11-0
sudo apt-get install libxcb-cursor0
sudo apt-get install libxcb-icccm4
sudo apt-get install libxcb-image0
sudo apt-get install libxcb-keysyms1
sudo apt-get install libxcb-randr0
sudo apt-get install libxcb-render-util0
sudo apt-get install libxcb-shape0
if: matrix.os == 'ubuntu-latest'

Choose a reason for hiding this comment

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

Very nice tidy up! One less place to remember all the X11 packages...

if: matrix.os != 'ubuntu-latest'
- name: Test Traits package
run: python -m unittest discover -v traits
working-directory: testdir

Choose a reason for hiding this comment

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

Huh, TIL working-directory context in GH Actions.

Quite handy indeed.

@mdickinson
Copy link
Member Author

Thanks for review, @flongford!

@mdickinson mdickinson merged commit d80f450 into main May 7, 2024
29 checks passed
@mdickinson mdickinson deleted the dev/dont-require-pyside branch May 7, 2024 11:12
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.

2 participants