Skip to content
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
7 changes: 1 addition & 6 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest pytest-cov pytest-benchmark pytest-mock
python -m pip install networkx
if [ -f requirements.txt ];
then
pip install -r requirements.txt;
fi
python -m pip install . pytest pytest-cov pytest-benchmark
- name: Test with pytest and check test coverage
run: |
pytest --cov=ngraph --cov-fail-under=85
27 changes: 12 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
# Stage 1: Base image with system dependencies
FROM python:3.13 AS base
FROM python:3.13-slim AS base

# Prevent interactive config during installation
ENV DEBIAN_FRONTEND=noninteractive

# Install system dependencies and cleanup
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y \
build-essential \
cmake \
curl \
wget \
unzip \
git \
libgeos-dev \
libproj-dev \
libgdal-dev \
build-essential \
cmake \
curl \
wget \
unzip \
git \
libgeos-dev \
libproj-dev \
libgdal-dev \
&& apt-get clean && \
rm -rf /var/lib/apt/lists/*

Expand All @@ -25,10 +26,6 @@ FROM base AS jupyterlab
# Upgrade pip and setuptools
RUN pip install --no-cache-dir --upgrade pip setuptools wheel

# Copy requirements first to leverage cache
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt

# Install Python packages
RUN pip install --no-cache-dir \
numpy \
Expand Down Expand Up @@ -71,4 +68,4 @@ VOLUME /root/env
ENTRYPOINT ["/tini", "-g", "--"]

# Default command to run when the container starts
CMD ["/bin/bash"]
CMD ["/bin/bash"]
6 changes: 2 additions & 4 deletions ngraph/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
"""NetGraph package."""

from __future__ import annotations
from . import cli, transform

from . import cli

__all__ = ["cli"]
__all__ = ["cli", "transform"]
Loading