Skip to content

Commit

Permalink
gh-actions: install graphviz headers according to OS
Browse files Browse the repository at this point in the history
  • Loading branch information
deeenes committed Jul 2, 2024
1 parent 8642212 commit 2dff1a8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/sphinx_autodoc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,15 @@ jobs:
steps:
- name: Check out main
uses: actions/checkout@main
- uses: tlylt/install-graphviz@v1
- name: Install graphviz headers
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo apt-get update
sudo apt-get install -y graphviz graphviz-dev
- name: Install graphviz headers
if: ${{ matrix.os == 'macos-latest' }}
run: |
brew install graphviz
- name: Setup Python
uses: actions/setup-python@v5
- name: Install system dependencies
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,16 @@ jobs:
steps:
- name: Check out
uses: actions/checkout@main
- uses: tlylt/install-graphviz@v1
- name: Setup Python
uses: actions/setup-python@v5
- name: Install system dependencies
run: sudo apt-get install -y graphviz graphviz-dev
- name: Install graphviz headers
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo apt-get update
sudo apt-get install -y graphviz graphviz-dev
- name: Install graphviz headers
if: ${{ matrix.os == 'macos-latest' }}
run: |
brew install graphviz
- name: Install Poetry
uses: snok/install-poetry@v1
with:
Expand Down

0 comments on commit 2dff1a8

Please sign in to comment.