Skip to content

Commit

Permalink
Merge pull request #380 from uber/GA_pytest
Browse files Browse the repository at this point in the history
Add GA pytest workflow
  • Loading branch information
ppstacy committed Aug 2, 2021
2 parents 95a8bd7 + 133336f commit 0be443a
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/python-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Python test on push and pull request

on: [push, pull_request]

jobs:
build:
# [macos-latest, macos-latest, windows-latest]
runs-on: ubuntu-latest
strategy:
# You can use PyPy versions in python-version.
# For example, pypy2 and pypy3
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
# You can test your matrix by printing the current Python version
- name: Display Python version
run: python -c "import sys; print(sys.version)"
- name: Install dependencies
run: |
pip install -U pip
pip install -U setuptools
pip install -r requirements.txt
pip install -r requirements-test.txt
python setup.py build_ext --inplace
python setup.py install
- name: Test with pytest
run: pytest -vs tests/ --cov causalml/
2 changes: 1 addition & 1 deletion causalml/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name = 'causalml'
__version__ = '0.11.0'
__version__ = '0.11.1'
__all__ = ['dataset',
'features',
'feature_selection',
Expand Down

0 comments on commit 0be443a

Please sign in to comment.