Merge pull request #200 from 68cdrBxM8YdoJ/master
Add github actions to build executable
This commit is contained in:
40
.github/workflows/main.yml
vendored
Normal file
40
.github/workflows/main.yml
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
name: PyInstaller
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [macos-latest, windows-latest, ubuntu-latest]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
ref: add-github-actions
|
||||
|
||||
- name: Set up Python 3.7
|
||||
uses: actions/setup-python@v1
|
||||
with:
|
||||
python-version: 3.7
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
pip install -r requirements.txt
|
||||
|
||||
- name: Build with pyinstaller
|
||||
run: |
|
||||
pyinstaller --onefile AV_Data_Capture.py
|
||||
|
||||
- name: Upload build artifact
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: AV_Data_Capture-${{ matrix.os }}
|
||||
path: dist
|
||||
6
requirements.txt
Normal file
6
requirements.txt
Normal file
@@ -0,0 +1,6 @@
|
||||
requests
|
||||
pyquery
|
||||
lxml
|
||||
beautifulsoup4
|
||||
pillow
|
||||
pyinstaller
|
||||
@@ -1,4 +0,0 @@
|
||||
lxml
|
||||
bs4
|
||||
pillow
|
||||
pyquery
|
||||
Reference in New Issue
Block a user