Skip to content

Commit

Permalink
fix: the github workflow was failing on Mac
Browse files Browse the repository at this point in the history
it was supposed to be skipped, but we were using `uname --kernel-name`
but mac only supports the short flags `uname -s`
  • Loading branch information
jameinel committed Nov 1, 2024
1 parent ca238cd commit f23f1cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ jobs:
- name: Run tests
shell: bash
run: |
if [[ $(uname --kernel-name) == "Linux" ]]; then
# -s == --kernel-name, but the long form isn't available on Mac OSX
if [[ $(uname -s) == "Linux" ]]; then
export XDG_RUNTIME_DIR=/run/user/$(id -u)
fi
tox run --skip-pkg-install --no-list-dependencies --result-json results/tox-${{ matrix.platform }}.json --colored yes -m tests
Expand Down

0 comments on commit f23f1cb

Please sign in to comment.