diff --git a/.github/workflows/RunChecks.yaml b/.github/workflows/RunChecks.yaml index c28eb8b..d34810a 100644 --- a/.github/workflows/RunChecks.yaml +++ b/.github/workflows/RunChecks.yaml @@ -48,14 +48,16 @@ jobs: tar -xvf /usr/local/bin/sacct_Linux_x86_64.tar.gz mv ./sacct /usr/local/bin/sacct chmod +x /usr/local/bin/sacct - echo "/usr/local/bin" >> $GITHUB_PATH + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Check mocked binaries work in different step + run: | Rscript -e 'if (!requireNamespace("processx", quietly = TRUE)) install.packages("processx"); processx::run("sinfo", args = "--json")' Rscript -e 'Sys.which("sinfo")' Rscript -e 'processx::run("sacct", args = "--json")' Rscript -e 'Sys.which("sacct")' - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - uses: r-lib/actions/setup-r-dependencies@v2 with: