From a5c09e95f83c13786dd826f740337a006b353a0a Mon Sep 17 00:00:00 2001 From: 68cdrBxM8YdoJ <68cdrBxM8YdoJ@gmail.com> Date: Tue, 7 Apr 2020 20:59:44 +0900 Subject: [PATCH] Add github actions to build --- .github/workflows/main.yml | 40 ++++++++++++++++++++++++++++++++++++++ requirements.txt | 6 ++++++ ruquirments.txt | 4 ---- 3 files changed, 46 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/main.yml create mode 100644 requirements.txt delete mode 100644 ruquirments.txt diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..d2bcc0a --- /dev/null +++ b/.github/workflows/main.yml @@ -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 diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..8aa8934 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,6 @@ +requests +pyquery +lxml +beautifulsoup4 +pillow +pyinstaller \ No newline at end of file diff --git a/ruquirments.txt b/ruquirments.txt deleted file mode 100644 index aa091a0..0000000 --- a/ruquirments.txt +++ /dev/null @@ -1,4 +0,0 @@ -lxml -bs4 -pillow -pyquery \ No newline at end of file