From e45a51852f42f3a32c315f22f4d70fbe510ee185 Mon Sep 17 00:00:00 2001 From: Derek Slaughter Date: Thu, 28 Mar 2024 19:58:12 +0000 Subject: [PATCH 1/3] Add empty requirements.txt in repo root to work around setup-python issue on GH actions --- requirements.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 requirements.txt diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000000..d01907317d --- /dev/null +++ b/requirements.txt @@ -0,0 +1,15 @@ +# This file was added to work around an issue with setup-python for non-Python projects, +# which fails with this error: +# +# Run actions/setup-python@v5.0.0 +# with: +# python-version: 3.12 +# cache: pip +# Installed versions +# Successfully set up CPython (3.12.1) +# Error: No file in /home/runner/work/awesome-iam/awesome-iam matched to +# [**/requirements.txt or **/pyproject.toml], make sure you have checked out the target repository +# +# This has been reported at: https://github.com/actions/setup-python/issues/807 +# In the future this might be addressed by: https://github.com/actions/setup-python/pull/762 +# or https://github.com/actions/setup-python/issues/751 \ No newline at end of file From b55f2e9e56a9df0c2c6a3e6e677ef8d729f266a9 Mon Sep 17 00:00:00 2001 From: Derek Slaughter Date: Thu, 28 Mar 2024 20:32:39 +0000 Subject: [PATCH 2/3] Attempt using requirements.txt to install testing dependencies --- .github/workflows/automated-dev-tests.yml | 54 ++++++++--------------- requirements.txt | 18 ++------ 2 files changed, 21 insertions(+), 51 deletions(-) diff --git a/.github/workflows/automated-dev-tests.yml b/.github/workflows/automated-dev-tests.yml index 8c5b14327f..49e6882213 100644 --- a/.github/workflows/automated-dev-tests.yml +++ b/.github/workflows/automated-dev-tests.yml @@ -46,8 +46,7 @@ jobs: cache: 'pip' - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" + pip install -r requirements.txt sudo apt-get update -y sudo apt-get install -y libopenblas-dev libopenblas-openmp-dev - name: Setup workspace @@ -132,8 +131,7 @@ jobs: cache: 'pip' - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" + pip install -r requirements.txt sudo apt-get update -y sudo apt-get install -y libopenblas-dev libopenblas-openmp-dev - name: Setup workspace @@ -178,8 +176,7 @@ jobs: cache: 'pip' - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" + pip install -r requirements.txt sudo apt-get update -y sudo apt-get install -y libopenblas-dev libopenblas-openmp-dev sudo apt-get install -y libhdf5-dev libopenmpi-dev libyaml-cpp-dev # gcovr @@ -232,8 +229,7 @@ jobs: cache: 'pip' - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" + pip install -r requirements.txt sudo apt-get update -y sudo apt-get install -y libopenblas-dev libopenblas-openmp-dev sudo apt-get install -y libhdf5-dev libopenmpi-dev libyaml-cpp-dev @@ -270,8 +266,7 @@ jobs: cache: 'pip' - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" + pip install -r requirements.txt sudo apt-get update -y sudo apt-get install -y libopenblas-dev libopenblas-openmp-dev sudo apt-get install -y libhdf5-dev libopenmpi-dev libyaml-cpp-dev @@ -308,8 +303,7 @@ jobs: cache: 'pip' - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" + pip install -r requirements.txt sudo apt-get update -y sudo apt-get install -y libopenblas-dev libopenblas-openmp-dev sudo apt-get install -y libhdf5-dev libopenmpi-dev libyaml-cpp-dev @@ -348,8 +342,7 @@ jobs: cache: 'pip' - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" + pip install -r requirements.txt sudo apt-get update -y sudo apt-get install -y libopenblas-dev - name: Setup workspace @@ -410,8 +403,7 @@ jobs: cache: 'pip' - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" + pip install -r requirements.txt sudo apt-get update -y sudo apt-get install -y libopenblas-dev libopenblas-openmp-dev sudo apt-get install -y libhdf5-dev libopenmpi-dev libyaml-cpp-dev @@ -466,8 +458,7 @@ jobs: cache: 'pip' - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" + pip install -r requirements.txt sudo apt-get update -y sudo apt-get install -y libopenblas-dev libopenblas-openmp-dev sudo apt-get install -y libhdf5-dev libopenmpi-dev libyaml-cpp-dev @@ -525,8 +516,7 @@ jobs: cache: 'pip' - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" vtk + pip install -r requirements.txt sudo apt-get update -y sudo apt-get install -y libopenblas-dev libopenblas-openmp-dev sudo apt-get install -y libhdf5-dev libopenmpi-dev libyaml-cpp-dev @@ -573,8 +563,7 @@ jobs: cache: 'pip' - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" + pip install -r requirements.txt sudo apt-get update -y sudo apt-get install -y libopenblas-dev libopenblas-openmp-dev sudo apt-get install -y libhdf5-dev libopenmpi-dev libyaml-cpp-dev @@ -626,8 +615,7 @@ jobs: cache: 'pip' - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" + pip install -r requirements.txt sudo apt-get update -y sudo apt-get install -y libopenblas-dev libopenblas-openmp-dev sudo apt-get install -y libhdf5-dev libopenmpi-dev libyaml-cpp-dev @@ -676,8 +664,7 @@ jobs: cache: 'pip' - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" + pip install -r requirements.txt sudo apt-get update -y sudo apt-get install -y libopenblas-dev libopenblas-openmp-dev sudo apt-get install -y libhdf5-dev libopenmpi-dev libyaml-cpp-dev @@ -726,8 +713,7 @@ jobs: cache: 'pip' - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" + pip install -r requirements.txt sudo apt-get update -y sudo apt-get install -y libopenblas-dev libopenblas-openmp-dev sudo apt-get install -y libhdf5-dev libopenmpi-dev libyaml-cpp-dev @@ -776,8 +762,7 @@ jobs: cache: 'pip' - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" + pip install -r requirements.txt sudo apt-get update -y sudo apt-get install -y libopenblas-dev libopenblas-openmp-dev sudo apt-get install -y libhdf5-dev libopenmpi-dev libyaml-cpp-dev @@ -826,8 +811,7 @@ jobs: cache: 'pip' - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" + pip install -r requirements.txt sudo apt-get update -y sudo apt-get install -y libopenblas-dev libopenblas-openmp-dev sudo apt-get install -y libhdf5-dev libopenmpi-dev libyaml-cpp-dev @@ -876,8 +860,7 @@ jobs: cache: 'pip' - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" + pip install -r requirements.txt sudo apt-get update -y sudo apt-get install -y libopenblas-dev libopenblas-openmp-dev sudo apt-get install -y libhdf5-dev libopenmpi-dev libyaml-cpp-dev @@ -926,8 +909,7 @@ jobs: cache: 'pip' - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install numpy "Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3" + pip install -r requirements.txt sudo apt-get update -y sudo apt-get install -y libopenblas-dev libopenblas-openmp-dev sudo apt-get install -y libhdf5-dev libopenmpi-dev libyaml-cpp-dev diff --git a/requirements.txt b/requirements.txt index d01907317d..d1cf944c46 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,15 +1,3 @@ -# This file was added to work around an issue with setup-python for non-Python projects, -# which fails with this error: -# -# Run actions/setup-python@v5.0.0 -# with: -# python-version: 3.12 -# cache: pip -# Installed versions -# Successfully set up CPython (3.12.1) -# Error: No file in /home/runner/work/awesome-iam/awesome-iam matched to -# [**/requirements.txt or **/pyproject.toml], make sure you have checked out the target repository -# -# This has been reported at: https://github.com/actions/setup-python/issues/807 -# In the future this might be addressed by: https://github.com/actions/setup-python/pull/762 -# or https://github.com/actions/setup-python/issues/751 \ No newline at end of file +# Python dependencies used for testing +numpy +Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3 \ No newline at end of file From cbee1cc99163c0e947c0df218882648dc6233238 Mon Sep 17 00:00:00 2001 From: Derek Slaughter Date: Thu, 28 Mar 2024 21:08:01 +0000 Subject: [PATCH 3/3] Add vtk package to requirements.txt --- requirements.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements.txt b/requirements.txt index d1cf944c46..21752feaf4 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ # Python dependencies used for testing numpy +vtk Bokeh>=2.4,!=3.0.0,!=3.0.1,!=3.0.2,!=3.0.3 \ No newline at end of file