Skip to content

Commit

Permalink
Add: regression workflow for PR and push to master
Browse files Browse the repository at this point in the history
  • Loading branch information
glx22 committed Jan 10, 2020
1 parent 862c1c3 commit c65ff24
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Regression
on:
pull_request:
push:
branches:
- master
# branches:
# - master

jobs:
regression:
Expand Down Expand Up @@ -64,3 +64,19 @@ jobs:
shell: bash
env:
NMLC: nmlc

- name: Build standalone executable
if: startsWith(matrix.os, 'windows')
run: |
python -m pip install --upgrade pyinstaller
pyinstaller ./nmlc.spec
$version = python ./setup.py --version
echo "::set-output name=version::$version"
id: exe

- name: Archive executable
if: startsWith(matrix.os, 'windows')
uses: actions/upload-artifact@v1
with:
name: ${{ format('nml-{0}-win32-python{1}', steps.exe.outputs.version, matrix.python-version) }}
path: dist/nmlc.exe

0 comments on commit c65ff24

Please sign in to comment.