Skip to content

Commit

Permalink
github actions config added
Browse files Browse the repository at this point in the history
  • Loading branch information
ferencberes committed Jul 4, 2021
1 parent 894dc29 commit 7c9527b
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 27 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on:

push:
branches: [ master ]
pull_request:
branches: [ master ]
schedule:
- cron: "0 0 * * 0"
workflow_dispatch:

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-18.04, ubuntu-latest]
python-version: ['3.5', '3.6', '3.7', '3.8']
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- run: which python
- name: Run installation.
run: |
pip install codecov
pip install .[test]
python setup.py install
bash ./scripts/download_data.sh
#- name: Test coverage.
#run: |
# python setup.py test
# codecov
#- name: Code Coverage
#uses: codecov/codecov-action@v1
- name: Run scripts
run: |
cd scripts
python run_simulator.py preprocessed 0 params.json PREPROC_OUT
python run_simulator.py raw ../ln_data/sample.json params.json JSON_OUT
14 changes: 0 additions & 14 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ After cloning the repository you can install the simulator with `pip`.
```bash
git clone https://github.com/ferencberes/LNTrafficSimulator.git
cd LNTrafficSimulator
pip install .
python setup.py install
```

# Data
Expand Down
54 changes: 42 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,18 +1,48 @@
from distutils.core import setup
from setuptools import find_packages, setup

install_requires = [
"pandas",
"numpy",
"networkx",
"matplotlib",
"seaborn",
"tqdm",
]

setup_requires = ['pytest-runner']

tests_require = [
'pytest',
'pytest-cov',
'codecov'
]

keywords = [
"bitcoin",
"lightning-network",
"simulator",
"simulation",
"research",
"cryptoeconomics"
]

# read the contents of your README file
from os import path
this_directory = path.abspath(path.dirname(__file__))
with open(path.join(this_directory, 'README.md'), encoding='utf-8') as f:
long_description = f.read()

setup(name='lnsimulator',
version='0.1',
version='0.1.0',
description="Traffic Simulator for Bitcoin's Lightning Network ",
url='https://github.com/ferencberes/LNTrafficSimulator',
author='Ferenc Beres',
author_email='fberes@info.ilab.sztaki.hu',
packages=['lnsimulator','lnsimulator.simulator'],
install_requires=[
"pandas",
"numpy",
"networkx",
"matplotlib",
"seaborn",
"tqdm",
],
zip_safe=False)
packages = find_packages(),
install_requires=install_requires,
setup_requires = setup_requires,
tests_require = tests_require,
keywords = keywords,
long_description=long_description,
long_description_content_type='text/markdown',
)

0 comments on commit 7c9527b

Please sign in to comment.