From 547d216b44446db18c57a4afc66285ffdc97525f Mon Sep 17 00:00:00 2001 From: Konstantin Baierer Date: Mon, 22 Jan 2024 13:47:09 +0100 Subject: [PATCH] ci/gha: enable macos --- .github/workflows/unit-test.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index bd274de66..4735aba6e 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -24,20 +24,26 @@ jobs: - '3.10' - '3.11' os: - - ubuntu-latest - # - macos-latest + - ubuntu-22.04 + - ubuntu-20.04 + - macos-latest steps: - uses: actions/checkout@v3 + - name: Set up Homebrew + id: set-up-homebrew + uses: Homebrew/actions/setup-homebrew@master - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v3 with: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - sudo apt-get -y update - if test "${{ matrix.os }}" = "ubuntu-latest";then + if [[ "${{ matrix.os }}" == "ubuntu"* ]];then + sudo apt-get -y update sudo make deps-ubuntu + else + brew install imagemagick geos bash opencv fi make install deps-test - name: Test with pytest