Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/LSSTDESC/ceci
Browse files Browse the repository at this point in the history
  • Loading branch information
joezuntz committed Jul 10, 2024
2 parents 8b83702 + fbea9ac commit 8aa8823
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ jobs:
run: |
sudo apt-get update && sudo apt-get -y install libopenmpi-dev openmpi-bin graphviz graphviz-dev
pip install .[all]
- name: Version
run: |
ceci --version
- name: Tests
run: |
Expand Down
10 changes: 10 additions & 0 deletions ceci/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from .pipeline import Pipeline
from .sites import load, set_default_site, get_default_site
from .utils import extra_paths
from ._version import __version__
import contextlib

# Add the current dir to the path - often very useful
Expand Down Expand Up @@ -35,6 +36,15 @@
help="Over-ride the main pipeline yaml file e.g. launcher.name=cwl",
)

parser.add_argument(
"-v",
"--version",
action="version",
version=__version__,
help="Print the ceci version instead of running anything",
)



def run_pipeline(pipe_config):
"""Run a pipeline as defined by a particular configuration
Expand Down

0 comments on commit 8aa8823

Please sign in to comment.