install solc on demand, add coverage to setupy

pull/1799/head
alpharush 2 years ago
parent 6a0fb7ca80
commit d4d387e585
  1. 2
      .github/workflows/test.yml
  2. 1
      setup.py
  3. 1
      tests/unit/slithir/test_ssa_generation.py

@ -51,7 +51,7 @@ jobs:
pushd tests/e2e/compilation/test_data/test_node_modules/
npm install hardhat
popd
pytest tests/e2e/compilation/
pytest --cov=slither --cov-append tests/e2e/compilation/
python -m coverage report
- name: unit / core, slithir, utils

@ -30,6 +30,7 @@ setup(
"numpy",
"openai",
"pdoc",
"coverage[toml]",
],
},
license="AGPL-3.0",

@ -247,6 +247,7 @@ def select_solc_version(version: Optional[str]) -> None:
)
ver = list(vers)[-1]
version = ".".join(map(str, ver))
solc_select.install_artifacts([version])
env = dict(os.environ)
env_restore = dict(env)
env["SOLC_VERSION"] = version

Loading…
Cancel
Save