Skip to content

Commit

Permalink
args = --json works for both. moving the call to sinfo and sacct to d…
Browse files Browse the repository at this point in the history
…ifferent step
  • Loading branch information
mduncans committed Sep 9, 2024
1 parent c8cd335 commit 13117be
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/RunChecks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 13117be

Please sign in to comment.