Skip to content

Commit b8f21a5

Browse files
authored
[python] gh-actions (#228)
* try ga for python * try ga for python 2 * try ga for python 3 * [python] update gh-actions * [python] update gh-actions * [python] gh-actions * [python] gh-actions
1 parent 323308a commit b8f21a5

File tree

7 files changed

+77
-2
lines changed

7 files changed

+77
-2
lines changed

.Rbuildignore

+1
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ pkgdown/
1414
DALEXpiramide
1515
^codecov\.yml$
1616
^\.github$
17+
^tox.ini$

.github/workflows/Python-check.yaml

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Python-check
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- 'dev*'
8+
- 'fix*'
9+
- 'issue*'
10+
- 'python*'
11+
- 'doc*'
12+
- 'gh-actions'
13+
- 'githubactions'
14+
paths:
15+
- '**.py'
16+
- '**.ini'
17+
pull_request:
18+
branches:
19+
- master
20+
paths:
21+
- '**.py'
22+
- '**.ini'
23+
24+
jobs:
25+
build:
26+
runs-on: ${{ matrix.platform }}
27+
strategy:
28+
matrix:
29+
platform: [ubuntu-latest, macos-latest, windows-latest]
30+
python-version: [3.6, 3.7, 3.8]
31+
32+
steps:
33+
- uses: actions/checkout@v1
34+
- name: Set up Python ${{ matrix.python-version }}
35+
uses: actions/setup-python@v1
36+
with:
37+
python-version: ${{ matrix.python-version }}
38+
- name: Install dependencies
39+
run: |
40+
python -m pip install --upgrade pip
41+
pip install tox tox-gh-actions
42+
- name: Test with tox
43+
run: tox
44+
env:
45+
PLATFORM: ${{ matrix.platform }}

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Status](https://img.shields.io/codecov/c/github/ModelOriented/DALEX/master.svg)]
77
[![Total Downloads](http://cranlogs.r-pkg.org/badges/grand-total/DALEX?color=orange)](http://cranlogs.r-pkg.org/badges/grand-total/DALEX)
88
[![DrWhy-eXtrAI](https://img.shields.io/badge/DrWhy-BackBone-373589)](http://drwhy.ai/#BackBone)
99

10+
[![Python-check](https://github.com/ModelOriented/DALEX/workflows/Python-check/badge.svg)](https://github.com/ModelOriented/DALEX/actions?query=workflow%3APython-check)
1011
[![PyPI version](https://badge.fury.io/py/dalex.svg)](https://badge.fury.io/py/dalex)
1112
[![Downloads](https://pepy.tech/badge/dalex)](https://pepy.tech/project/dalex)
1213

python/dalex/.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
**/.idea/*
22
**/.ipynb_checkpoints/*
3-
**/__pycache__/*
3+
**/__pycache__/*
4+
**/.tox/*
5+
**/dalex.egg-info/*

python/dalex/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[moDel Agnostic Language for Exploration and eXplanation](http://dalex.drwhy.ai/)
44

5+
[![Python-check](https://github.com/ModelOriented/DALEX/workflows/Python-check/badge.svg)](https://github.com/ModelOriented/DALEX/actions?query=workflow%3APython-check)
56
[![PyPI version](https://badge.fury.io/py/dalex.svg)](https://badge.fury.io/py/dalex)
67
[![Downloads](https://pepy.tech/badge/dalex)](https://pepy.tech/project/dalex)
78

python/dalex/dalex/datasets/_load.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
def load_titanic():
77
"""
8-
Load the preprocessed titanic dataset.
8+
Load the preprocessed 'titanic' dataset.
99
"""
1010

1111
abs_dir_path = os.path.dirname(os.path.abspath(__file__))

tox.ini

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[tox]
2+
envlist = py{36,37,38}-{linux,macos,windows}
3+
toxworkdir={toxinidir}/python/dalex/.tox
4+
temp_dir={toxinidir}/python/dalex/.tmp
5+
setupdir={toxinidir}/python/dalex/
6+
skip_missing_interpreters=true
7+
8+
[gh-actions]
9+
python =
10+
3.6: py36
11+
3.7: py37
12+
3.8: py38
13+
14+
[gh-actions:env]
15+
PLATFORM =
16+
ubuntu-latest: linux
17+
macos-latest: macos
18+
windows-latest: windows
19+
20+
[testenv]
21+
changedir = {toxinidir}/python/dalex/test
22+
commands = discover
23+
deps =
24+
discover
25+
scikit-learn

0 commit comments

Comments
 (0)