From 87a155d32b522ca5b3ea087d9a620cf1841d3b37 Mon Sep 17 00:00:00 2001 From: Levente Meszaros Date: Wed, 30 Oct 2024 11:33:39 +0100 Subject: [PATCH] .github: Added pip install and python package install commands. --- .github/workflows/module-tests.yml | 10 ++++++++++ .github/workflows/other-tests.yml | 10 ++++++++++ .github/workflows/unit-tests.yml | 10 ++++++++++ 3 files changed, 30 insertions(+) diff --git a/.github/workflows/module-tests.yml b/.github/workflows/module-tests.yml index cf28dcc2ec4..2c02e7adeee 100644 --- a/.github/workflows/module-tests.yml +++ b/.github/workflows/module-tests.yml @@ -45,6 +45,16 @@ jobs: source $GITHUB_WORKSPACE/inet/_scripts/github/build-omnetpp.sh + echo "::group::Installing pip" + sudo apt install -y python3-pip + echo "::endgroup::" + + echo "::group::Installing Python packages" + python3 -m venv $GITHUB_WORKSPACE/venv + source $GITHUB_WORKSPACE/venv/bin/activate + python3 -m pip install --upgrade matplotlib numpy pandas seaborn scipy ipython posix-ipc cppyy sewar dask distributed optimparallel requests + echo "::endgroup::" + source $GITHUB_WORKSPACE/inet/_scripts/github/build-inet.sh echo "::group::Running module tests" diff --git a/.github/workflows/other-tests.yml b/.github/workflows/other-tests.yml index afe7cb6c6d3..86035c004c0 100644 --- a/.github/workflows/other-tests.yml +++ b/.github/workflows/other-tests.yml @@ -46,6 +46,16 @@ jobs: source $GITHUB_WORKSPACE/inet/_scripts/github/build-omnetpp.sh + echo "::group::Installing pip" + sudo apt install -y python3-pip + echo "::endgroup::" + + echo "::group::Installing Python packages" + python3 -m venv $GITHUB_WORKSPACE/venv + source $GITHUB_WORKSPACE/venv/bin/activate + python3 -m pip install --upgrade matplotlib numpy pandas seaborn scipy ipython posix-ipc cppyy sewar dask distributed optimparallel requests + echo "::endgroup::" + source $GITHUB_WORKSPACE/inet/_scripts/github/build-inet.sh echo "::group::Running ${{ matrix.testdir }} tests" diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 9b14e9e5421..66ef798ae00 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -45,6 +45,16 @@ jobs: source $GITHUB_WORKSPACE/inet/_scripts/github/build-omnetpp.sh + echo "::group::Installing pip" + sudo apt install -y python3-pip + echo "::endgroup::" + + echo "::group::Installing Python packages" + python3 -m venv $GITHUB_WORKSPACE/venv + source $GITHUB_WORKSPACE/venv/bin/activate + python3 -m pip install --upgrade matplotlib numpy pandas seaborn scipy ipython posix-ipc cppyy sewar dask distributed optimparallel requests + echo "::endgroup::" + source $GITHUB_WORKSPACE/inet/_scripts/github/build-inet.sh echo "::group::Running unit tests"