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 authored and LordAro committed Nov 23, 2019
1 parent f23cb3b commit 833a8d3
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/regression.yml
@@ -0,0 +1,66 @@
name: Regression

on:
pull_request:
push:
branches:
- master

jobs:
regression:

name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macOS-latest, windows-2016]
python-version: [3.5, 3.6, 3.7, 3.8]

steps:
- uses: actions/checkout@v1

- name: Ubuntu cache
uses: actions/cache@v1
if: startsWith(matrix.os, 'ubuntu')
with:
path: ~/.cache/pip
key:
${{ matrix.os }}-${{ matrix.python-version }}-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ matrix.os }}-${{ matrix.python-version }}-
- name: macOS cache
uses: actions/cache@v1
if: startsWith(matrix.os, 'macOS')
with:
path: ~/Library/Caches/pip
key:
${{ matrix.os }}-${{ matrix.python-version }}-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ matrix.os }}-${{ matrix.python-version }}-
- name: Windows cache
uses: actions/cache@v1
if: startsWith(matrix.os, 'windows')
with:
path: ~\AppData\Local\pip\Cache
key:
${{ matrix.os }}-${{ matrix.python-version }}-${{ hashFiles('**\setup.py') }}
restore-keys: |
${{ matrix.os }}-${{ matrix.python-version }}-
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
architecture: ${{ startsWith(matrix.os, 'windows') && 'x86' || 'x64' }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools
python -m pip install -e .
- name: Test
run: make -C regression
shell: bash
env:
NMLC: nmlc

0 comments on commit 833a8d3

Please sign in to comment.