From f8637c9b84a989ee7b7a95f7bfdb6d6d19f603ca Mon Sep 17 00:00:00 2001 From: Cristiano Nicolai <570894+cristianonicolai@users.noreply.github.com> Date: Tue, 12 Dec 2023 01:03:57 +1000 Subject: [PATCH] Add macos to test matrix --- .github/workflows/tox.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 32f4065a78..09c71d110c 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -36,6 +36,7 @@ jobs: pkg eco py311-devel + platforms: linux,macos build: name: ${{ matrix.name }} @@ -65,7 +66,8 @@ jobs: path: | ~/.cache/pre-commit key: pre-commit-${{ matrix.name || matrix.passed_name }}-${{ hashFiles('.pre-commit-config.yaml') }} - - name: Install system dependencies + - name: Install system dependencies on Linux + if: ${{ runner.os == 'Linux' }} # remove broken .deb ansible and replace with pip version: # https://github.com/actions/virtual-environments/issues/3001 run: | @@ -75,6 +77,12 @@ jobs: && pip3 install --user ansible-core ansible-lint\ && echo "$HOME/.local/bin" >> $GITHUB_PATH # https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#adding-a-system-path + - name: Install system dependencies on MacOS + if: ${{ runner.os == 'macOS' }} + run: | + pip3 install --user ansible-core ansible-lint\ + && echo "$HOME/.local/bin" >> $GITHUB_PATH + # https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#adding-a-system-path - name: Validate that ansible works run: | ansible --version \