Skip to content

update

update #49

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Python compile
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
#runs-on: ubuntu-18.04
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['windows-latest']
#os: ['windows-latest']
py: ['tigercinegui']
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .
pip install pyinstaller onnxruntime scikit-image matplotlib certifi pandas
- name: Run Pyinstaller 1
if: matrix.os == 'windows-latest'
run: |
pyinstaller -c -p ./tigerhx --add-data "./tigerhx/exe/onnxruntime_providers_shared.dll;onnxruntime/capi" -F ./tigerhx/${{ matrix.py }}.py
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.py }}-${{ matrix.os }}
path: dist/*