-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from deepset-ai/generalimport
Simplify `pygraphviz` optional import
- Loading branch information
Showing
6 changed files
with
19 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -126,8 +126,9 @@ jobs: | |
- name: Install Canals (MacOS) | ||
if: matrix.os == 'macos-latest' | ||
run: | | ||
brew install graphviz | ||
pip install .[mermaid,graphviz,dev] | ||
# brew only offers graphviz 8, which seems to be incompatible with pygraphviz :( | ||
# brew install [email protected] | ||
pip install .[mermaid,dev] | ||
- name: Install Canals (Windows) | ||
if: matrix.os == 'windows-latest' | ||
|
@@ -141,7 +142,7 @@ jobs: | |
pip install .[mermaid,dev] | ||
- name: Run | ||
run: hatch run cov | ||
run: pytest --cov-report xml:coverage.xml --cov="canals" test/ | ||
|
||
- name: Coverage | ||
if: matrix.os == 'ubuntu-latest' && matrix.version == 3.11 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
# SPDX-FileCopyrightText: 2022-present deepset GmbH <[email protected]> | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
from generalimport import generalimport | ||
|
||
from canals.__about__ import __version__ | ||
|
||
generalimport("pygraphviz") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters