Skip to content

Commit

Permalink
ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
Neutree committed Aug 27, 2022
1 parent 976881d commit 739fbf3
Show file tree
Hide file tree
Showing 6 changed files with 37 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ jobs:
- name: test pack
run: |
pip3 install -r requirements.txt
pip3 install pyinstaller wheel
pip3 install pyinstaller wheel pyinstaller-hooks-contrib
python setup.py sdist bdist_wheel
python pack.py
19 changes: 16 additions & 3 deletions .github/workflows/pack_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,21 @@ jobs:
python --version
export QT_DEBUG_PLUGINS=1
sudo apt-get update
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y x11-utils libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xkb1 libxkbcommon-x11-0 libegl1 libxcb-xinerama0
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y --no-install-recommends \
xvfb \
x11-utils \
libxkbcommon-x11-0 \
libxcb-icccm4 \
libxcb-image0 \
libxcb-keysyms1 \
libxcb-randr0 \
libxcb-render-util0 \
libxcb-xkb1 \
libegl1-mesa \
libxcb-xinerama0 \
libglib2.0-0 \
libopengl0
pip3 install -r requirements.txt
pip3 install -U pyinstaller wheel
pip3 install -U pyinstaller wheel pyinstaller-hooks-contrib
python setup.py sdist bdist_wheel
python pack.py
xvfb-run python pack.py
17 changes: 15 additions & 2 deletions .github/workflows/release_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,24 @@ jobs:
python --version
export QT_DEBUG_PLUGINS=1
sudo apt-get update
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y x11-utils libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xkb1 libxkbcommon-x11-0 libegl1 libxcb-xinerama0
DEBIAN_FRONTEND=noninteractive sudo apt-get install -y --no-install-recommends \
xvfb \
x11-utils \
libxkbcommon-x11-0 \
libxcb-icccm4 \
libxcb-image0 \
libxcb-keysyms1 \
libxcb-randr0 \
libxcb-render-util0 \
libxcb-xkb1 \
libegl1-mesa \
libxcb-xinerama0 \
libglib2.0-0 \
libopengl0
pip3 install -r requirements.txt
pip3 install pyinstaller wheel
python setup.py sdist bdist_wheel
python pack.py
xvfb-run python pack.py
release_path=`python pack.py ${{ matrix.os }}`
echo $release_path
release_name=`echo $release_path | awk -F"/" '{print $NF}'`
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
run: |
python --version
pip3 install -r requirements.txt
pip3 install pyinstaller wheel
pip3 install pyinstaller wheel pyinstaller-hooks-contrib
python setup.py sdist bdist_wheel
python pack.py
release_path=`python pack.py ${{ matrix.os }}`
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
run: |
python --version
pip3 install -r requirements.txt
pip3 install pyinstaller wheel
pip3 install pyinstaller wheel pyinstaller-hooks-contrib
python setup.py sdist bdist_wheel
python pack.py
$release_path = python pack.py ${{ matrix.os }}
Expand Down
6 changes: 3 additions & 3 deletions pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@

# when execute packed executable program(./dist/comtool) warning missing package, add here to resolve
hidden_imports = [
"pyqtgraph.graphicsItems.PlotItem.plotConfigTemplate_pyqt5",
"pyqtgraph.graphicsItems.ViewBox.axisCtrlTemplate_pyqt5",
"pyqtgraph.imageview.ImageViewTemplate_pyqt5",
# "pyqtgraph.graphicsItems.PlotItem.plotConfigTemplate_pyqt5", # fixed in latest pyinstaller-hooks-contrib
# "pyqtgraph.graphicsItems.ViewBox.axisCtrlTemplate_pyqt5",
# "pyqtgraph.imageview.ImageViewTemplate_pyqt5",
"babel.numbers"
]

Expand Down

0 comments on commit 739fbf3

Please sign in to comment.