Skip to content

Commit

Permalink
Test on MacOS Homebrew
Browse files Browse the repository at this point in the history
fixes #22
  • Loading branch information
arcivanov committed Dec 23, 2023
1 parent 36e36ff commit f293594
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/kubernator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@ on:
- develop
jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
permissions:
packages: write
contents: read
continue-on-error: false
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
python-version:
- '3.12'
- '3.11'
Expand All @@ -30,6 +33,21 @@ jobs:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
steps:
- name: Install Docker on MacOS
if: |
runner.os == 'macOS'
shell: bash
run: |
set -x
brew update
brew install docker
colima start
sudo ln -sf $HOME/.colima/default/docker.sock /var/run/docker.sock
while ! docker info > /dev/null 2>&1; do sleep 1 ; done
- name: Should Upload
if: |
github.event_name == 'push' &&
Expand All @@ -54,6 +72,7 @@ jobs:
- name: Build with PyBuilder
uses: pybuilder/build@master
with:
homebrew-python: true
python-version: ${{ matrix.python-version }}
pyb-extra-args: ${{ env.PYB_EXTRA_ARGS }}

Expand Down

0 comments on commit f293594

Please sign in to comment.