-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from andreasgriffin/dev
Code quality improvements and bug fixes improved translation management fixed update bug improved search UI popup locked build script version upgraded nostr_sdk added UI pytests pytests work now on windows
- Loading branch information
Showing
48 changed files
with
10,004 additions
and
9,055 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
name: Python Tests with PyQt6 | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
jobs: | ||
test: | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 10 | ||
strategy: | ||
matrix: | ||
python-version: ['3.10'] | ||
os: [ ubuntu-latest ] # [macos-latest, ubuntu-latest, windows-latest] | ||
env: | ||
DISPLAY: ":99.0" # Display setting for Xvfb on Linux | ||
QT_SELECT: "qt6" # Environment variable to select Qt6 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Setup xvfb (Linux) | ||
if: runner.os == 'Linux' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y xvfb \ | ||
libxkbcommon-x11-0 \ | ||
libxcb-icccm4 \ | ||
libxcb-image0 \ | ||
libxcb-keysyms1 \ | ||
libxcb-randr0 \ | ||
libxcb-render-util0 \ | ||
libxcb-xinerama0 \ | ||
libxcb-xinput0 \ | ||
libxcb-xfixes0 \ | ||
libxcb-shape0 \ | ||
libglib2.0-0 \ | ||
libgl1-mesa-dev \ | ||
'^libxcb.*-dev' \ | ||
libx11-xcb-dev \ | ||
libglu1-mesa-dev \ | ||
libxrender-dev \ | ||
libxi-dev \ | ||
libxkbcommon-dev \ | ||
libxkbcommon-x11-dev | ||
sudo /usr/bin/Xvfb $DISPLAY -screen 0 1280x1024x24 & | ||
- name: Start Xvfb | ||
if: runner.os == 'Linux' | ||
run: | | ||
export DISPLAY=:99.0 | ||
/sbin/start-stop-daemon --start --quiet --pidfile /tmp/custom_xvfb_99.pid --make-pidfile --background --exec /usr/bin/Xvfb -- :99 -screen 0 1920x1200x24 -ac +extension GLX +render -noreset | ||
sleep 3 | ||
sleep 1 | ||
- name: Install Python dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install poetry | ||
poetry install | ||
- name: Run tests | ||
run: | | ||
poetry run pytest -vvv --log-cli-level=DEBUG --setup-show --maxfail=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.6.1a0" | ||
__version__ = "0.6.2a0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.