Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Update README.md

Update README.md #48

Workflow file for this run

name: VoilaTest
on:
push:
branches: '*'
pull_request:
branches: '*'
jobs:
voila:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install node
uses: actions/setup-node@v1
with:
node-version: '17.x'
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
architecture: 'x64'
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run the voila server
run: |
voila --template=osscar --enable_nbextensions=True ./ --port 8383 --no-browser &
pip install --upgrade pytest
pip install --upgrade selenium
- uses: nanasess/setup-chromedriver@master
- run: |
export DISPLAY=:99
chromedriver --url-base=/wd/hub &
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional
python3 $GITHUB_WORKSPACE/test/test.py
- uses: actions/upload-artifact@v2
with:
name: osscar-widgets
path: './*.png'
Dokku-dev-deploy:
needs: voila
runs-on: ubuntu-latest
steps:
- name: Cloning repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Push to dokku
uses: dokku/github-action@master
with:
git_remote_url: 'ssh://[email protected]:22/osscar-widgets'
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
if: github.event_name != 'pull_request'