-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aeab7fa
commit d91826b
Showing
1 changed file
with
70 additions
and
0 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,70 @@ | ||
name: Build standalone | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- 'v*' | ||
tags: | ||
- 'v*' | ||
pull_request: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-standalone | ||
cancel-in-progress: true | ||
|
||
defaults: | ||
run: | ||
shell: bash {0} | ||
|
||
|
||
jobs: | ||
build_binary: | ||
runs-on: ${{ matrix.os }}-latest | ||
strategy: | ||
matrix: | ||
os: [ubuntu, windows, macos] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install jdaviz | ||
run: pip install . | ||
|
||
- name: Install pyinstaller | ||
run: pip install pyinstaller | ||
|
||
- name: Create standalone binary | ||
run: (cd jdaviz; pyinstaller ./cli.spec) | ||
|
||
- name: Run jdaviz cmd in background | ||
run: ./jdaviz/dist/cli/cli& | ||
|
||
- name: Install playwright | ||
run: (pip install playwright; playwright install chrome) | ||
|
||
- name: Wait for Voila server to get online | ||
uses: ifaxity/wait-on-action@v1 | ||
with: | ||
resource: http-get://localhost:8866/ | ||
timeout: 10000 | ||
|
||
# TODO: run playwright test | ||
- name: Upload Test artifacts | ||
if: always() | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: test-results | ||
path: test-results | ||
|
||
- name: Upload jdaviz standalone | ||
if: always() | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: jdaviz-standlone | ||
path: ./jdaviz/dist/cli |