Skip to content

Commit

Permalink
Add macos to test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
cristianonicolai committed Dec 11, 2023
1 parent ff5f024 commit f8637c9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
pkg
eco
py311-devel
platforms: linux,macos

build:
name: ${{ matrix.name }}
Expand Down Expand Up @@ -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: |
Expand All @@ -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 \
Expand Down

0 comments on commit f8637c9

Please sign in to comment.