Test install/install-gui scripts (#8241)

This commit is contained in:
Chris Marslender 2021-08-27 09:27:12 -07:00 committed by GitHub
parent 86fbcf8249
commit 64ba38f3b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -0,0 +1,50 @@
name: Test Install Scripts
on:
push:
branches:
- main
tags:
- '**'
pull_request:
branches:
- '**'
jobs:
test_scripts:
name: Test Install Scripts
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
max-parallel: 4
matrix:
python-version: [3.9]
os: [macOS-latest, ubuntu-latest]
steps:
- name: Cancel previous runs on the same branch
if: ${{ github.ref != 'refs/heads/main' }}
uses: styfle/cancel-workflow-action@0.9.1
with:
access_token: ${{ github.token }}
- name: Checkout Code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Python environment
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Run install script
env:
INSTALL_PYTHON_VERSION: ${{ matrix.python-version }}
BUILD_VDF_CLIENT: "N"
run: sh install.sh
- name: Run install-gui script
run: |
. ./activate
sh install-gui.sh