Merge pull request #10 from titanscouting/automate-build

Automate build
This commit is contained in:
Arthur Lu 2021-06-09 14:58:21 -07:00 committed by GitHub
commit d684813ee0
5 changed files with 20 additions and 3 deletions

17
.github/workflows/build-cli.yml vendored Normal file
View File

@ -0,0 +1,17 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Superscript Unit Tests
on:
release:
types: [published, edited]
jobs:
generate:
name: Build Linux
runs-on: ubuntu-latest
steps:
- name: Checkout master
uses: actions/checkout@master

1
.gitignore vendored
View File

@ -7,6 +7,7 @@
**/*.egg-info/ **/*.egg-info/
**/config.json **/config.json
**/tra_analysis/ **/tra_analysis/
**/temp/*
**/errorlog.txt **/errorlog.txt
/dist/superscript.* /dist/superscript.*

View File

@ -1,5 +1,5 @@
set pathtospec="../src/superscript.spec" set pathtospec="../src/superscript.spec"
set pathtodist="../dist/" set pathtodist="../dist/"
set pathtowork="/temp/" set pathtowork="temp/"
pyinstaller --onefile --clean --distpath %pathtodist% --workpath %pathtowork% %pathtospec% pyinstaller --onefile --clean --distpath %pathtodist% --workpath %pathtowork% %pathtospec%

View File

@ -1,5 +1,5 @@
pathtospec="../src/superscript.spec" pathtospec="../src/superscript.spec"
pathtodist="../dist/" pathtodist="../dist/"
pathtowork="/temp/" pathtowork="temp/"
pyinstaller --onefile --clean --distpath ${pathtodist} --workpath ${pathtowork} ${pathtospec} pyinstaller --onefile --clean --distpath ${pathtodist} --workpath ${pathtowork} ${pathtospec}

View File

@ -143,7 +143,6 @@ from pathlib import Path
from multiprocessing import Pool from multiprocessing import Pool
import platform import platform
import sys import sys
from concurrent.futures import ThreadPoolExecutor
import time import time
import warnings import warnings