Skip to content
Open
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
27 changes: 27 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: CI
on: [workflow_dispatch, pull_request, push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -e .

- name: Test with pytest
run: |
pytest

2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.4
0.0.5
7 changes: 6 additions & 1 deletion causalgraphicalmodels/cgm.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import networkx as nx
import graphviz
from itertools import combinations, chain
from collections import Iterable
import sys

if sys.version_info.major == 3 and sys.version_info.minor >= 9:
from collections.abc import Iterable
else:
from collections import Iterable


class CausalGraphicalModel:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"Intended Audience :: Science/Research",
"Topic :: Scientific/Engineering",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.5 3.6 3.7 3.8 3.9 3.10",
],
keywords="causal inference causal graphical models causality",
packages=find_packages(exclude=["notebook", "test"]),
Expand Down