Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuaspear authored Apr 13, 2023
0 parents commit 9b49b20
Show file tree
Hide file tree
Showing 8 changed files with 769 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/python-dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Python Dev

on:
push:
branches:
- main
pull_request:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'

- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install pytest-cov
pip list
- name: Build package
run: |
python setup.py build_ext -q -j2
python -m pip install -e .
- name: Build Version
run: |
python -c "import shap_demo"
- name: Test with pytest
run: |
pytest -v --cov=src --cov-report=xml
continue-on-error: true
- name: Publish test results
uses: actions/upload-artifact@master
with:
name: Test results
path: coverage.xml
if: failure()
- name: Report Coverage
run: |
coverage report -m
18 changes: 18 additions & 0 deletions .github/python-linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Python Linting
on:
push:
branches: [master]
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Python Linter
uses: sunnysid3up/python-linter@master
with:
source: "src"
mypy-options: "--ignore-missing-imports --show-error-codes"
pylint-options: "--rcfile=setup.cfg"
django: false
Loading

0 comments on commit 9b49b20

Please sign in to comment.