From 24ea05c46843e3c3c577f696cc6f2a2bff9971aa Mon Sep 17 00:00:00 2001 From: DanielAvdar <66269169+DanielAvdar@users.noreply.github.com> Date: Mon, 29 Jan 2024 14:00:46 +0200 Subject: [PATCH] os dep --- .github/workflows/run-tests.yml | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index f288b041..4085e05c 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -12,21 +12,26 @@ jobs: python-version: ['3.8', '3.9', '3.10', '3.11'] steps: + - name: Install OS Dependencies + if: matrix.os == 'ubuntu-latest' + run: | + sudo apt-get update + sudo apt-get -y install graphviz + + - name: Install OS Dependencies + if: matrix.os == 'macos-latest' + run: | + brew install graphviz + + - name: Install OS Dependencies + if: matrix.os == 'windows-latest' + run: | + choco install graphviz - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - - name: Install OS Dependencies - run: | - if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then - sudo apt-get update - sudo apt-get -y install graphviz - elif [[ "${{ matrix.os }}" == "macos-latest" ]]; then - brew install graphviz - elif [[ "${{ matrix.os }}" == "windows-latest" ]]; then - choco install graphviz - fi - name: Install Python Dependencies run: | python -m pip install --upgrade pip