Skip to content

Commit

Permalink
add optional graphviz dependency to build pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
Naikless committed Oct 6, 2023
1 parent ee3d3e1 commit 79bcf39
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 14 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
- name: Install Python dependencies
run: |
python3 -m pip install ruamel.yaml scons==3.1.2 numpy cython pandas pytest \
pytest-github-actions-annotate-failures pint
pytest-github-actions-annotate-failures pint graphviz
- name: Build Cantera
run: |
python3 `which scons` build env_vars=all -j2 debug=n --debug=time \
Expand Down Expand Up @@ -141,7 +141,7 @@ jobs:
run: python3 -m pip install -U pip setuptools wheel
- name: Install Python dependencies
run: |
python3 -m pip install ruamel.yaml scons numpy cython pandas pytest pytest-github-actions-annotate-failures pint
python3 -m pip install ruamel.yaml scons numpy cython pandas pytest pytest-github-actions-annotate-failures pint graphviz
- name: Build Cantera
run: python3 `which scons` build env_vars=all
CXX=clang++-14 CC=clang-14 f90_interface=n extra_lib_dirs=/usr/lib/llvm/lib
Expand Down Expand Up @@ -192,7 +192,7 @@ jobs:
run: $PYTHON_CMD -m pip install -U pip 'setuptools>=47.0.0,<48' wheel
- name: Install Python dependencies
run: |
$PYTHON_CMD -m pip install ruamel.yaml numpy cython pandas pytest pytest-github-actions-annotate-failures pint
$PYTHON_CMD -m pip install ruamel.yaml numpy cython pandas pytest pytest-github-actions-annotate-failures pint graphviz
- name: Install Python dependencies for GH Python
if: matrix.python-version == '3.11'
run:
Expand Down Expand Up @@ -241,7 +241,7 @@ jobs:
- name: Install Python dependencies
run: |
python3 -m pip install ruamel.yaml scons numpy cython pandas scipy pytest \
pytest-github-actions-annotate-failures pytest-cov gcovr pint
pytest-github-actions-annotate-failures pytest-cov gcovr pint graphviz
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v2
with:
Expand Down Expand Up @@ -417,7 +417,7 @@ jobs:
run: python3 -m pip install -U pip setuptools wheel
- name: Install Python dependencies
run: |
python3 -m pip install numpy ruamel.yaml pandas matplotlib scipy pint
python3 -m pip install numpy ruamel.yaml pandas matplotlib scipy pint graphviz
python3 -m pip install --pre --no-index --find-links dist cantera
- name: Run the examples
# See https://unix.stackexchange.com/a/392973 for an explanation of the -exec part
Expand Down Expand Up @@ -481,7 +481,7 @@ jobs:
run: |
conda install -q sundials=${{ matrix.sundials-ver }} scons numpy ruamel.yaml \
cython boost-cpp fmt=${{ matrix.fmt-ver }} eigen yaml-cpp pandas \
libgomp openblas pytest highfive
libgomp openblas pytest highfive python-graphviz
- name: Build Cantera
run: |
scons build system_fmt=y system_eigen=y system_yamlcpp=y system_sundials=y \
Expand Down Expand Up @@ -550,7 +550,7 @@ jobs:
# use boost-cpp rather than boost from conda-forge
# Install SCons >=4.4.0 to make sure that MSVC_TOOLSET_VERSION variable is present
run: |
mamba install -q '"scons>=4.4.0"' numpy cython ruamel.yaml boost-cpp eigen yaml-cpp pandas pytest highfive pint fmt=${{ matrix.fmt-ver }}
mamba install -q '"scons>=4.4.0"' numpy cython ruamel.yaml boost-cpp eigen yaml-cpp pandas pytest highfive pint python-graphviz fmt=${{ matrix.fmt-ver }}
shell: pwsh
- name: Build Cantera
run: scons build system_eigen=y system_yamlcpp=y system_highfive=y logging=debug
Expand Down Expand Up @@ -615,7 +615,7 @@ jobs:
- name: Install Python dependencies
run: |
python -m pip install -U pip setuptools wheel
python -m pip install '"scons<4.4.0"' pypiwin32 numpy ruamel.yaml cython pandas pytest pytest-github-actions-annotate-failures
python -m pip install '"scons<4.4.0"' pypiwin32 numpy ruamel.yaml cython pandas graphviz pytest pytest-github-actions-annotate-failures
- name: Restore Boost cache
uses: actions/cache@v3
id: cache-boost
Expand Down Expand Up @@ -679,7 +679,7 @@ jobs:
- name: Install Python dependencies
run: |
python3 -m pip install ruamel.yaml scons numpy cython pandas pytest \
pytest-github-actions-annotate-failures pint
pytest-github-actions-annotate-failures pint graphviz
- name: Setup Intel oneAPI environment
run: |
source /opt/intel/oneapi/setvars.sh
Expand Down Expand Up @@ -712,7 +712,7 @@ jobs:
- name: Install Python dependencies
run: |
python -m pip install -U pip setuptools wheel
python -m pip install scons pypiwin32 numpy ruamel.yaml cython h5py pandas pytest pytest-github-actions-annotate-failures pint
python -m pip install scons pypiwin32 numpy ruamel.yaml cython h5py pandas pytest pytest-github-actions-annotate-failures pint graphviz
- name: Restore Boost cache
uses: actions/cache@v3
id: cache-boost
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/post-merge-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: Install Python dependencies
run: |
python3 -m pip install ruamel.yaml scons numpy pandas pytest pint \
pytest-github-actions-annotate-failures
pytest-github-actions-annotate-failures graphviz
python3 -m pip install --pre cython
- name: Build Cantera
run: python3 `which scons` build env_vars=all
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
libboost-dev gfortran libopenmpi-dev libpython3-dev \
libblas-dev liblapack-dev libhdf5-dev libfmt-dev libyaml-cpp-dev \
libgtest-dev libgmock-dev libeigen3-dev libsundials-dev \
cython3 python3-numpy python3-pandas python3-pint \
cython3 python3-numpy python3-pandas python3-pint python3-graphviz \
python3-ruamel.yaml python3-setuptools python3-wheel python3-pytest
gcc --version
- name: Install Python dependencies
Expand Down Expand Up @@ -122,7 +122,8 @@ jobs:
gcc-fortran gmock-devel gtest-devel python3 python3-cython \
python3-devel python3-numpy python3-pandas python3-pint python3-pip \
python3-pytest python3-ruamel-yaml python3-scipy python3-scons \
python3-wheel sundials-devel yaml-cpp-devel hdf5-devel highfive-devel
python3-wheel sundials-devel yaml-cpp-devel hdf5-devel highfive-devel \
python3-graphviz
- name: Build Cantera
run: |
scons build -j2 debug=n --debug=time python_package=full f90_interface=y \
Expand Down Expand Up @@ -169,7 +170,7 @@ jobs:
- name: Install Python dependencies
run: |
python3 -m pip install ruamel.yaml scons numpy cython pandas pytest \
pytest-github-actions-annotate-failures pint
pytest-github-actions-annotate-failures pint graphviz
- name: Build Cantera
run: |
python3 `which scons` build env_vars=all -j2 debug=n --debug=time \
Expand Down
1 change: 1 addition & 0 deletions interfaces/cython/setup.cfg.in
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ cantera.examples = *.txt
[options.extras_require]
pandas = pandas
units = pint
graphviz = python-graphviz

[options.entry_points]
console_scripts =
Expand Down
1 change: 1 addition & 0 deletions interfaces/python_sdist/setup.cfg.in
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ cantera = *.cpp, *.h, *.pyx
[options.extras_require]
pandas = pandas
units = pint
graphviz = python-graphviz

[options.entry_points]
console_scripts =
Expand Down

0 comments on commit 79bcf39

Please sign in to comment.