Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GA pytest workflow #380

Merged
merged 5 commits into from
Aug 2, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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