Skip to content

Commit

Permalink
Merge pull request #1 from eli5-org/gh-actions
Browse files Browse the repository at this point in the history
Run tests via github actions, drop python 3.4
  • Loading branch information
lopuhin authored Jan 20, 2021
2 parents 017c738 + b6d69ed commit c944b20
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 66 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: build

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['2.7', '3.5', '3.6', '3.7']
tox-env: ['py']
include:
- python-version: '3.5'
tox-env: 'py35-nodeps'
- python-version: '3.5'
tox-env: 'py35-extra'
- python-version: '2.7'
tox-env: 'py27-extra'
- python-version: '3.6'
tox-env: 'py36-extra'
- python-version: '3.6'
tox-env: 'py36-legacy'
- python-version: '3.7'
tox-env: 'py37-nodeps'
- python-version: '3.6'
tox-env: 'mypy'
- python-version: '3.6'
tox-env: 'docs'

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip tox
- name: tox
run: |
tox -e ${{ matrix.tox-env }}
61 changes: 0 additions & 61 deletions .travis.yml

This file was deleted.

4 changes: 2 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ ELI5
:target: https://pypi.python.org/pypi/eli5
:alt: PyPI Version

.. image:: https://travis-ci.org/TeamHG-Memex/eli5.svg?branch=master
:target: https://travis-ci.org/TeamHG-Memex/eli5
.. image:: https://github.com/eli5-org/eli5/workflows/build/badge.svg?branch=master
:target: https://github.com/eli5-org/eli5/actions
:alt: Build Status

.. image:: https://codecov.io/github/TeamHG-Memex/eli5/coverage.svg?branch=master
Expand Down
1 change: 0 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ def get_long_description():
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
; https://github.com/Microsoft/LightGBM/tree/master/python-package#lightgbm-python-package.

[tox]
envlist = py27,py34,py35,py35-nodeps,mypy,py35-extra,py27-extra,py36,py36-extra,py36-legacy,py37-nodeps
envlist = py27,py35,py35-nodeps,mypy,py35-extra,py27-extra,py36,py36-extra,py36-legacy,py37-nodeps

[base]
deps=
Expand All @@ -30,7 +30,7 @@ deps=

commands=
; to install lightning numpy must be installed first
pip install "sklearn-contrib-lightning >= 0.4"
pip install joblib "sklearn-contrib-lightning >= 0.4"
pip install -e .
bash _ci/runtests_default.sh {posargs: eli5 tests}

Expand Down

0 comments on commit c944b20

Please sign in to comment.