isolate dependency groups

pull/1799/head
alpharush 2 years ago
parent 83a64ed776
commit 79dacdde8a
  1. 4
      .github/workflows/ci.yml
  2. 8
      .github/workflows/docs.yml
  3. 2
      .github/workflows/test.yml
  4. 13
      setup.py

@ -58,12 +58,10 @@ jobs:
python-version: 3.8
- name: Install dependencies
run: |
pip install ".[dev]"
pip install ".[test]"
solc-select use 0.4.25 --always-install
solc-select use 0.8.0 --always-install
solc-select use 0.5.1 --always-install
pip install typing_extensions==4.1.1
pip install importlib_metadata==4.8.3
- name: Set up nix
if: matrix.type == 'dapp'

@ -23,7 +23,7 @@ jobs:
# Single deploy job since we're just deploying
build:
environment:
name: github-pages
name: Slither Documentation
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
@ -34,13 +34,13 @@ jobs:
- uses: actions/setup-python@v4
with:
python-version: '3.8'
- run: pip install -e ".[dev]"
- run: pdoc -o docs/ slither '!slither.tools' #TODO fix import errors on pdoc run
- run: pip install -e ".[doc]"
- run: pdoc -o html/ slither '!slither.tools' #TODO fix import errors on pdoc run
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload the doc
path: 'docs/'
path: './html/'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1

@ -36,7 +36,7 @@ jobs:
- name: Install dependencies
run: |
pip install ".[dev]"
pip install ".[test]"
solc-select install 0.8.0
solc-select use 0.8.0

@ -20,18 +20,25 @@ setup(
"web3>=6.0.0",
],
extras_require={
"dev": [
"lint": [
"black==22.3.0",
"pylint==2.13.4",
],
"test": [
"pytest",
"pytest-cov",
"pytest-xdist",
"deepdiff",
"numpy",
"openai",
"pdoc",
"coverage[toml]",
],
"doc": [
"pdoc",
],
"dev": [
"slither-analyzer[lint,test,doc]",
"openai",
],
},
license="AGPL-3.0",
long_description=long_description,

Loading…
Cancel
Save