From f2b3491b27b1c1d1091916be1c7a2ceacec67390 Mon Sep 17 00:00:00 2001 From: Daniele Rapetti <5535617+Iximiel@users.noreply.github.com> Date: Tue, 28 Nov 2023 11:07:56 +0100 Subject: [PATCH 1/4] trying to address the macport pytest problem --- .github/workflows/macWF.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/macWF.yml b/.github/workflows/macWF.yml index 3ba17ad760..52807f3005 100644 --- a/.github/workflows/macWF.yml +++ b/.github/workflows/macWF.yml @@ -53,6 +53,7 @@ jobs: - name: Run python tests run: | for p in $PYVERS ; do + sudo port select --set pytest pytest${p#py} sudo port test $p-plumed done From 09146963941c3b234e078987f7321ac3c172cd8a Mon Sep 17 00:00:00 2001 From: Daniele Rapetti <5535617+Iximiel@users.noreply.github.com> Date: Tue, 28 Nov 2023 11:11:30 +0100 Subject: [PATCH 2/4] deactivating the ci apart from the mac ONE -this commit will be removed-- --- .github/workflows/ci.yml | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2fcdd99f45..7dfb30b72c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,22 +15,6 @@ env: jobs: - linux: - uses: ./.github/workflows/linuxWF.yml - secrets: inherit - - codecheck: - uses: ./.github/workflows/codecheckWF.yml - secrets: inherit - mac: uses: ./.github/workflows/macWF.yml secrets: inherit - - docker: - uses: ./.github/workflows/dockerWF.yml - secrets: inherit - - conda: - uses: ./.github/workflows/condaWF.yml - secrets: inherit From 730a6f8e59ddc89e9e313e23c7bd1edf74c9b759 Mon Sep 17 00:00:00 2001 From: Daniele Rapetti <5535617+Iximiel@users.noreply.github.com> Date: Tue, 28 Nov 2023 11:34:05 +0100 Subject: [PATCH 3/4] adding a way to retrieve the logs --- .github/workflows/macWF.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/macWF.yml b/.github/workflows/macWF.yml index 52807f3005..1e1f57c06b 100644 --- a/.github/workflows/macWF.yml +++ b/.github/workflows/macWF.yml @@ -51,11 +51,19 @@ jobs: run: | sudo port -N -d test plumed ${{ matrix.variant }} - name: Run python tests + id: pytests run: | for p in $PYVERS ; do - sudo port select --set pytest pytest${p#py} sudo port test $p-plumed done + - name: Archive test results + uses: actions/upload-artifact@v3 + if: ${{ failure() && steps.pytests.conclusion == 'failure' }} +#Error: See /opt/local/var/macports/logs/_Users_runner_work_plumed2_plumed2_macports_python_py-plumed/py37-plumed/main.log for details. + with: + name: pytestLog + path: | + /opt/local/var/macports/logs macsimple: runs-on: macos-11 From 9503d62b382e4f05e6b1c6e99d5dafc26a0917fd Mon Sep 17 00:00:00 2001 From: Daniele Rapetti <5535617+Iximiel@users.noreply.github.com> Date: Tue, 28 Nov 2023 12:02:34 +0100 Subject: [PATCH 4/4] forcing the test to run --- .github/workflows/macWF.yml | 47 +++++++++++++------------------------ 1 file changed, 16 insertions(+), 31 deletions(-) diff --git a/.github/workflows/macWF.yml b/.github/workflows/macWF.yml index 1e1f57c06b..4c2394e834 100644 --- a/.github/workflows/macWF.yml +++ b/.github/workflows/macWF.yml @@ -50,41 +50,26 @@ jobs: - name: Run tests run: | sudo port -N -d test plumed ${{ matrix.variant }} - - name: Run python tests - id: pytests - run: | - for p in $PYVERS ; do - sudo port test $p-plumed - done + # - name: Run python tests + # run: | + # for p in $PYVERS ; do + # sudo port test $p-plumed + # done + #THIS WILL BE REMOVED + - if: always() + run: sudo port test py310-plumed + - if: always() + run: sudo port test py39-plumed + - if: always() + run: sudo port test py38-plumed + - if: always() + run: sudo port test py37-plumed + - name: Archive test results uses: actions/upload-artifact@v3 - if: ${{ failure() && steps.pytests.conclusion == 'failure' }} + if: always() #Error: See /opt/local/var/macports/logs/_Users_runner_work_plumed2_plumed2_macports_python_py-plumed/py37-plumed/main.log for details. with: name: pytestLog path: | /opt/local/var/macports/logs - - macsimple: - runs-on: macos-11 - steps: - - uses: actions/checkout@v3 - - name: Set paths - run: | - echo "$HOME/opt/bin" >> $GITHUB_PATH - echo "CPATH=$HOME/opt/include:$CPATH" >> $GITHUB_ENV - echo "INCLUDE=$HOME/opt/include:$INCLUDE" >> $GITHUB_ENV - echo "LIBRARY_PATH=$HOME/opt/lib:$LIBRARY_PATH" >> $GITHUB_ENV - echo "LD_LIBRARY_PATH=$HOME/opt/lib:$LD_LIBRARY_PATH" >> $GITHUB_ENV - - name: Build PLUMED - run: | - brew update > /dev/null - brew install gawk - ./configure --disable-dependency-tracking --prefix="$HOME/opt" - make -j 4 - make install - - name: Run tests - run: | - make --no-print-directory -C regtest - # these can fail for numerical reasons - make -C regtest checkfail