Skip to content

Commit

Permalink
Merge pull request #13 from yongchand/main
Browse files Browse the repository at this point in the history
Implement Pytest PR
  • Loading branch information
yongchand authored Oct 24, 2022
2 parents d7d593d + ac38a79 commit eb5fd78
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 17 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Pytest PR
on:
pull_request:
branches:
- main
jobs:
run-test-code:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
pip install -r requirements.txt
- name: Test with pytest
env:
KLAYTN_ETL_RUN_SLOW_TESTS: True
run: |
pytest
13 changes: 13 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
web3>=5.29,<6
eth-rlp<0.3
eth-utils==1.10
eth-abi==2.1.1
# TODO: This has to be removed when "ModuleNotFoundError: No module named 'eth_utils.toolz'" is fixed at eth-abi
python-dateutil>=2.8.0,<3
click==8.0.4
ethereum-dasm==0.1.4
pytz==2022.1
base58
requests
boto3
google-cloud-storage
22 changes: 5 additions & 17 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ def version():
except:
return "0.0.0.dev0"

with open('requirements.txt') as f:
requirements = f.read().splitlines()

long_description = read('README.md') if os.path.isfile("README.md") else ""

setup(
Expand All @@ -31,26 +34,11 @@ def version():
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9'
'Programming Language :: Python :: 3.9',
],
keywords=['klaytn', 'etl', 'batch'],
python_requires='>=3.7.2,<4',
install_requires=[
'web3>=5.29,<6',
# eth-rlp is explicitly written to prevent dependency related issue
'eth-rlp<0.3',
'eth-utils==1.10',
'eth-abi==2.1.1',
# TODO: This has to be removed when "ModuleNotFoundError: No module named 'eth_utils.toolz'" is fixed at eth-abi
'python-dateutil>=2.8.0,<3',
'click==8.0.4',
'ethereum-dasm==0.1.4',
'pytz==2022.1',
'base58',
'requests',
'boto3',
'google-cloud-storage'
],
install_requires=requirements,
extras_require={
'dev': [
'pytest~=4.3.0'
Expand Down

0 comments on commit eb5fd78

Please sign in to comment.