File tree Expand file tree Collapse file tree 3 files changed +35
-11
lines changed Expand file tree Collapse file tree 3 files changed +35
-11
lines changed Original file line number Diff line number Diff line change
1
+ name: build
2
+
3
+ on: [push]
4
+
5
+ jobs:
6
+ build:
7
+
8
+ runs-on: ubuntu-latest
9
+ strategy:
10
+ matrix:
11
+ python-version: [3.8]
12
+
13
+ steps:
14
+ - uses: actions/checkout@v2
15
+ - name: Set up Python ${{ matrix.python-version }}
16
+ uses: actions/setup-python@v2
17
+ with:
18
+ python-version: ${{ matrix.python-version }}
19
+ - name: Install dependencies
20
+ run: |
21
+ python -m pip install --upgrade pip
22
+ pip install git+https://github.com/pcko1/etherscan-python.git coverage flake8
23
+ - name: Lint with flake8
24
+ run: |
25
+ # stop the build if there are Python syntax errors or undefined names
26
+ flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
27
+ # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
28
+ flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
29
+ - name: Test with unittest
30
+ run: |
31
+ export API_KEY=${{ secrets.ETHERSCAN_API_KEY }}
32
+ bash run_tests.sh API_KEY
33
+ bash <(curl -s https://codecov.io/bash)
Original file line number Diff line number Diff line change 1
1
language: python
2
2
python:
3
3
- '3.8'
4
- before_install:
5
- - wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
6
- - bash miniconda.sh -b -p $HOME/miniconda
7
- - source "$HOME/miniconda/etc/profile.d/conda.sh"
8
- - export PATH=/home/travis/miniconda/bin:$PATH
9
- - conda update -q conda -y
10
- - conda info -a
11
4
install:
12
- - conda env create -f env.yml
13
- - conda activate etherscan-python
14
- - pip install .
5
+ - pip install git+https://github.com/pcko1/etherscan-python.git coverage
15
6
script:
16
7
- coverage run -m unittest discover && coverage report -m
17
8
- bash <(curl -s https://codecov.io/bash)
Original file line number Diff line number Diff line change 15
15
"etherscan.modules",
16
16
"etherscan.utils",
17
17
],
18
- install_requires=["requests", "coverage" ],
18
+ install_requires=["requests"],
19
19
include_package_data=True,
20
20
zip_safe=False,
21
21
)
You can’t perform that action at this time.
0 commit comments