Skip to content

Commit bfee4f3

Browse files
committed
Refactored workflows
1 parent 67b4e2e commit bfee4f3

File tree

3 files changed

+35
-11
lines changed

3 files changed

+35
-11
lines changed

.github/workflows/build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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)

.travis.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,8 @@
11
language: python
22
python:
33
- '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
114
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
156
script:
167
- coverage run -m unittest discover && coverage report -m
178
- bash <(curl -s https://codecov.io/bash)

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"etherscan.modules",
1616
"etherscan.utils",
1717
],
18-
install_requires=["requests", "coverage"],
18+
install_requires=["requests"],
1919
include_package_data=True,
2020
zip_safe=False,
2121
)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy