Skip to content

Commit f13f383

Browse files
committed
✨🎨 Try to build executable on ubuntu (+ formating)
1 parent 6fe5165 commit f13f383

File tree

1 file changed

+35
-8
lines changed

1 file changed

+35
-8
lines changed

.github/workflows/cdci.yml

Lines changed: 35 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: [main]
88
release:
99
types: [published]
10-
10+
1111
jobs:
1212
test:
1313
name: Unittests+streamlit
@@ -17,14 +17,14 @@ jobs:
1717
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
1818
steps:
1919
- uses: actions/checkout@v4
20-
- uses: psf/black@stable
20+
- uses: psf/black@stable
2121
- uses: isort/isort-action@v1
2222
- name: Set up Python ${{ matrix.python-version }}
2323
uses: actions/setup-python@v5
2424
with:
2525
python-version: ${{ matrix.python-version }}
26-
cache: 'pip' # caching pip dependencies
27-
cache-dependency-path: '**/pyproject.toml'
26+
cache: "pip" # caching pip dependencies
27+
cache-dependency-path: "**/pyproject.toml"
2828
- name: Install dependencies
2929
run: |
3030
python -m pip install --upgrade pip
@@ -37,7 +37,7 @@ jobs:
3737
cd docs
3838
vuegen --directory example_data/Earth_microbiome_vuegen_demo_notebook
3939
vuegen --config example_data/Earth_microbiome_vuegen_demo_notebook/Earth_microbiome_vuegen_demo_notebook_config.yaml
40-
40+
4141
other-reports:
4242
name: Integration tests
4343
runs-on: ubuntu-latest
@@ -50,8 +50,8 @@ jobs:
5050
uses: actions/setup-python@v5
5151
with:
5252
python-version: ${{ matrix.python-version }}
53-
cache: 'pip' # caching pip dependencies
54-
cache-dependency-path: '**/pyproject.toml'
53+
cache: "pip" # caching pip dependencies
54+
cache-dependency-path: "**/pyproject.toml"
5555
- name: Install dependencies
5656
run: |
5757
pip install --upgrade pip
@@ -110,7 +110,7 @@ jobs:
110110

111111
steps:
112112
- uses: actions/checkout@v4
113-
113+
114114
- uses: actions/setup-python@v5
115115
with:
116116
python-version: "3.11"
@@ -120,3 +120,30 @@ jobs:
120120
run: python -m build
121121
- name: Publish package distributions to PyPI
122122
uses: pypa/gh-action-pypi-publish@release/v1
123+
124+
build-executable:
125+
name: Build executable
126+
runs-on: ${{ matrix.os }}
127+
needs:
128+
- test
129+
- other-reports
130+
strategy:
131+
matrix:
132+
python-version: ["3.11"]
133+
os: ["ubuntu-latest"] #, "macos-13", "macos-latest", "windows-latest",]
134+
steps:
135+
- uses: actions/checkout@v4
136+
- uses: actions/setup-python@v5
137+
with:
138+
python-version: ${{ matrix.python-version }}
139+
- name: Install PyInstaller
140+
run: python -m pip install pyinstaller
141+
- name: Build executable
142+
run: |
143+
cd gui
144+
pyinstaller -n vuegen_gui --no-confirm --onedir --collect-all pyvis --collect-all streamlit --collect-all st_aggrid --collect-all customtkinter app.py
145+
- name: Upload executable
146+
uses: actions/upload-artifact@v4
147+
with:
148+
name: vuegen_gui_${{ matrix.os }}
149+
path: gui/dist/

0 commit comments

Comments
 (0)