Skip to content

Testing doc disk space #784

Testing doc disk space

Testing doc disk space #784

Workflow file for this run

name: Build Docs (CI)
on:
pull_request:
branches: [main]
paths:
- ".github/workflows/docs-ci.yml"
- "dowhy/**"
- "docs/**"
- "pyproject.toml"
- "poetry.lock"
jobs:
docs:
runs-on: ubuntu-latest
container:
image: "ghcr.io/${{ github.repository_owner }}/dowhy-docs-generation:latest"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install LLVM and Clang
uses: KyleMayes/[email protected]
with:
version: "14.0"
directory: ${{ runner.temp }}/llvm
# Following https://github.com/marketplace/actions/free-disk-space-ubuntu
- name: Some cleanup for more disk space
run: |
dh -h
rm -rf "$AGENT_TOOLSDIRECTORY" || true
rm -rf /usr/local/lib/android || true
rm -rf /opt/ghc || true
rm -rf /usr/local/.ghcup || true
rm -rf "$AGENT_TOOLSDIRECTORY" || 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
- run: git config --global --add safe.directory /__w/dowhy/dowhy
- name: Build
run: ./docs/generate_docs.sh