• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

SDXorg / excels2vensim / 18087871981

26 Aug 2025 03:19PM UTC coverage: 50.769% (-6.4%) from 57.179%
18087871981

push

github

web-flow
Bump lycheeverse/lychee-action from 2.5.0 to 2.6.1 (#22)

Bumps [lycheeverse/lychee-action](https://github.com/lycheeverse/lychee-action) from 2.5.0 to 2.6.1.
- [Release notes](https://github.com/lycheeverse/lychee-action/releases)
- [Commits](https://github.com/lycheeverse/lychee-action/compare/v2.5.0...v2.6.1)

---
updated-dependencies:
- dependency-name: lycheeverse/lychee-action
  dependency-version: 2.6.1
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

396 of 780 relevant lines covered (50.77%)

0.51 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

33.33
/excels2vensim/cli/main.py
1
import sys
1✔
2
import os
1✔
3
from pathlib import Path
1✔
4

5
from .parser import parser
1✔
6

7
from excels2vensim import Subscripts, load_from_json
1✔
8
from excels2vensim.gui import start_gui
1✔
9

10

11
def main(args):
1✔
12
    """
13
    Main function. Reads user arguments, loads the models,
14
    runs it and saves the output
15

16
    Parameters
17
    ----------
18
    args: list
19
        User arguments.
20

21
    Returns
22
    -------
23
    None
24

25
    """
26
    options = parser.parse_args(args)
×
27

28
    if options.gui:  # pragma: no cover
29
        start_gui(options.subscript_file, options.output_file)
30
        sys.exit()
31

32
    # read the subscripts
33
    original_wd = Path.cwd()
×
34
    Subscripts.read(options.subscript_file)
×
35
    model_dir = options.subscript_file.parent
×
36
    print(f"Setting current working directory to: {model_dir}")
×
37
    os.chdir(model_dir)
×
38

39
    eqs = ""
×
40
    # execute json files
41
    for json_file in options.config_file:
×
42
        eqs += load_from_json(original_wd.joinpath(json_file))
×
43

44
    if options.output_file:
×
45
        with open(original_wd.joinpath(options.output_file), 'w')\
×
46
             as file:
47
            file.write(eqs)
×
48
    else:
49
        print(eqs)
×
50

51
    sys.exit()
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc