From 419545d8fea7e9d169ea02eaa3edd8279d23c7c9 Mon Sep 17 00:00:00 2001 From: mahdiolfat Date: Fri, 2 Feb 2024 16:14:04 -0500 Subject: [PATCH] Resolve #15: separated requirements packages - avoids big pip installs (e.g., jupyter) not required for continuous testing --- .github/workflows/ContinuousTesting.yml | 4 ++-- requirements-basic.txt | 2 ++ requirements-dev.txt | 3 +++ requirements-testing.txt | 5 +++++ requirements.txt | 12 +++--------- 5 files changed, 15 insertions(+), 11 deletions(-) create mode 100644 requirements-basic.txt create mode 100644 requirements-dev.txt create mode 100644 requirements-testing.txt diff --git a/.github/workflows/ContinuousTesting.yml b/.github/workflows/ContinuousTesting.yml index 025f38c..81d21fc 100644 --- a/.github/workflows/ContinuousTesting.yml +++ b/.github/workflows/ContinuousTesting.yml @@ -17,11 +17,11 @@ jobs: - name: Install Dependencies run: | python -m pip install --upgrade pip setuptools wheel - pip install -r requirements.txt + pip install -r requirements-testing.txt - name: Static Lint run: | - ruff . --verbose --output-format=github + ruff . --verbose --output-format=github - name: Static Type Check run: | diff --git a/requirements-basic.txt b/requirements-basic.txt new file mode 100644 index 0000000..5576e19 --- /dev/null +++ b/requirements-basic.txt @@ -0,0 +1,2 @@ +numpy +scipy \ No newline at end of file diff --git a/requirements-dev.txt b/requirements-dev.txt new file mode 100644 index 0000000..06607e5 --- /dev/null +++ b/requirements-dev.txt @@ -0,0 +1,3 @@ +-r requirements-basic +matplotlib +jupyterlab \ No newline at end of file diff --git a/requirements-testing.txt b/requirements-testing.txt new file mode 100644 index 0000000..38faa93 --- /dev/null +++ b/requirements-testing.txt @@ -0,0 +1,5 @@ +-r requirements-basic.txt +ruff +pytest +pytest-cov +mypy \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index aeec680..7dc9d87 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,9 +1,3 @@ -numpy -scipy -matplotlib - -ruff -pytest -pytest-cov -mypy -jupyterlab +-r requirements-basic.txt +-r requirements-testing.txt +-r requirements-dev.txt \ No newline at end of file