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

Testing doc disk space #1259

Closed
wants to merge 2 commits into from
Closed
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
8 changes: 7 additions & 1 deletion .github/workflows/advanced-on-demand.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, "3.10", "3.11"]
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
poetry-version: [1.5.1]
test-group: [1, 2, 3, 4]

Expand Down Expand Up @@ -54,6 +54,12 @@ jobs:
with:
poetry-version: ${{ matrix.poetry-version }}

- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v2
with:
version: "14.0"
directory: ${{ runner.temp }}/llvm

- name: Install graphviz
run: |
sudo apt install graphviz libgraphviz-dev graphviz-dev pkg-config
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/ci-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, "3.10", "3.11"]
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
Expand All @@ -36,6 +36,12 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v2
with:
version: "14.0"
directory: ${{ runner.temp }}/llvm

- name: Install graphviz
run: |
sudo apt install graphviz libgraphviz-dev graphviz-dev pkg-config
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, "3.10", "3.11"]
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
poetry-version: [1.5.1]
test-group: [1, 2, 3, 4, 5, 6]

Expand All @@ -44,6 +44,12 @@ jobs:
with:
poetry-version: ${{ matrix.poetry-version }}

- name: Install LLVM and Clang
uses: KyleMayes/[email protected]
with:
version: "14.0"
directory: ${{ runner.temp }}/llvm

- name: Install graphviz
run: |
sudo apt install graphviz libgraphviz-dev graphviz-dev pkg-config
Expand Down
24 changes: 23 additions & 1 deletion .github/workflows/docs-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,36 @@ on:

jobs:
docs:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
container:
image: "ghcr.io/${{ github.repository_owner }}/dowhy-docs-generation:latest"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

# Following https://github.com/marketplace/actions/free-disk-space-ubuntu
- name: Some cleanup for more disk space
run: |
df -h
rm -rf "$AGENT_TOOLSDIRECTORY" || true
rm -rf /usr/local/lib/android || true
rm -rf /opt/ghc || true
rm -rf /usr/local/.ghcup || true
swapoff -a || true
rm -f /mnt/swapfile || true
apt-get remove -y '^aspnetcore-.*' || true
apt-get remove -y '^dotnet-.*' --fix-missing || true
apt-get remove -y 'php.*' --fix-missing || true
apt-get remove -y '^mongodb-.*' --fix-missing || true
apt-get remove -y '^mysql-.*' --fix-missing || true
apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri --fix-missing || true
apt-get remove -y google-cloud-sdk --fix-missing || true
apt-get remove -y google-cloud-cli --fix-missing || true
apt-get autoremove -y || true
apt-get clean || true
df -h

- name: Install Python Dependencies
run: poetry install -E plotting -E pydot -E pygraphviz -E econml --with docs

Expand Down
24 changes: 23 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,36 @@ on:

jobs:
docs:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
container:
image: "ghcr.io/${{ github.repository_owner }}/dowhy-docs-generation:latest"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

# Following https://github.com/marketplace/actions/free-disk-space-ubuntu
- name: Some cleanup for more disk space
run: |
df -h
rm -rf "$AGENT_TOOLSDIRECTORY" || true
rm -rf /usr/local/lib/android || true
rm -rf /opt/ghc || true
rm -rf /usr/local/.ghcup || true
swapoff -a || true
rm -f /mnt/swapfile || true
apt-get remove -y '^aspnetcore-.*' || true
apt-get remove -y '^dotnet-.*' --fix-missing || true
apt-get remove -y 'php.*' --fix-missing || true
apt-get remove -y '^mongodb-.*' --fix-missing || true
apt-get remove -y '^mysql-.*' --fix-missing || true
apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri --fix-missing || true
apt-get remove -y google-cloud-sdk --fix-missing || true
apt-get remove -y google-cloud-cli --fix-missing || true
apt-get autoremove -y || true
apt-get clean || true
df -h

- name: Install Python Dependencies
run: poetry install -E plotting -E pydot -E pygraphviz -E econml --with docs

Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/nightly-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, "3.10", "3.11"]
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
poetry-version: [1.5.1]

steps:
Expand All @@ -27,6 +27,12 @@ jobs:
with:
poetry-version: ${{ matrix.poetry-version }}

- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v2
with:
version: "14.0"
directory: ${{ runner.temp }}/llvm

- name: Install graphviz
run: |
sudo apt install graphviz libgraphviz-dev graphviz-dev pkg-config
Expand Down
2 changes: 0 additions & 2 deletions dowhy/causal_estimators/econml.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import numpy as np
import pandas as pd
from numpy.distutils.misc_util import is_sequence

from dowhy.causal_estimator import CausalEstimate, CausalEstimator
from dowhy.causal_identifier import IdentifiedEstimand
Expand Down Expand Up @@ -295,7 +294,6 @@ def shap_values(self, df: pd.DataFrame, *args, **kwargs):
def apply_multitreatment(self, df: pd.DataFrame, fun: Callable, *args, **kwargs):
ests = []
assert not isinstance(self._treatment_value, str)
assert is_sequence(self._treatment_value)

if df is None:
filtered_df = None
Expand Down
Loading
Loading