Skip to content

Commit

Permalink
draft of test in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
maartenbreddels committed Jan 10, 2023
1 parent aeab7fa commit d91826b
Showing 1 changed file with 70 additions and 0 deletions.
70 changes: 70 additions & 0 deletions .github/workflows/standalone.yml
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

0 comments on commit d91826b

Please sign in to comment.