Skip to content

Commit

Permalink
Merge pull request #13 from aoki-h-jp/feature/1.0.3/pytest-cicd
Browse files Browse the repository at this point in the history
Feature/1.0.3/pytest cicd
  • Loading branch information
aoki-h-jp authored Aug 25, 2023
2 parents 1cd1c14 + ec05fb3 commit 3df7bf5
Show file tree
Hide file tree
Showing 17 changed files with 41 additions and 13 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Run pytest on all branches

on: push

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9 # 使用するPythonのバージョンを指定してください

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pipenv
pip install git+https://github.com/aoki-h-jp/binance-bulk-downloader
pipenv install --dev # Pipenvを使用して依存関係をインストール
- name: Run pytest
run: |
pipenv run pytest -v -s # pytestを実行するコマンドを指定
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# binance-bulk-downloader
[![Python 3.11](https://img.shields.io/badge/python-3.11-blue.svg)](https://www.python.org/downloads/release/python-3110//)
[![Format code](https://github.com/aoki-h-jp/binance-bulk-downloader/actions/workflows/Formatter.yml/badge.svg?branch=main)](https://github.com/aoki-h-jp/binance-bulk-downloader/actions/workflows/Formatter.yml)
[![pytest](https://github.com/aoki-h-jp/binance-bulk-downloader/actions/workflows/pytest.yaml/badge.svg)](https://github.com/aoki-h-jp/binance-bulk-downloader/actions/workflows/pytest.yaml)

## Python library for bulk downloading Binance historical data
A Python library to efficiently and concurrently download historical data files from Binance. Supports all asset types (spot, USDT-M, COIN-M, options) and all data frequencies.
Expand Down
Empty file added example/__init__.py
Empty file.
Empty file added tests/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion tests/test_aggtrades.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import pytest

# import my libraries
from downloader.downloader import *
from downloader import BinanceBulkDownloader


def dynamic_aggtrades_test_params():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_bookdepth.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import pytest

# import my libraries
from downloader.downloader import *
from downloader import BinanceBulkDownloader


def dynamic_bookdepth_test_params():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_bookticker.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import pytest

# import my libraries
from downloader.downloader import *
from downloader import BinanceBulkDownloader


def dynamic_bookticker_test_params():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_bvolindex.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import pytest

# import my libraries
from downloader.downloader import *
from downloader import BinanceBulkDownloader


def dynamic_bvolindex_test_params():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_eohsummary.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import pytest

# import my libraries
from downloader.downloader import *
from downloader import BinanceBulkDownloader


def dynamic_eohsummary_test_params():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_fundingrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import pytest

# import my libraries
from downloader.downloader import *
from downloader import BinanceBulkDownloader


def dynamic_fundingrate_test_params():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_indexpriceklines.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import pytest

# import my libraries
from downloader.downloader import *
from downloader import BinanceBulkDownloader


def dynamic_indexpriceklines_test_params():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_klines.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import pytest

# import my libraries
from downloader.downloader import *
from downloader import BinanceBulkDownloader


def dynamic_klines_test_params():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_liquidationsnapshot.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import pytest

# import my libraries
from downloader.downloader import *
from downloader import BinanceBulkDownloader


def dynamic_liquidationsnapshot_test_params():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_markpriceklines.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import pytest

# import my libraries
from downloader.downloader import *
from downloader import BinanceBulkDownloader


def dynamic_markpriceklines_test_params():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import pytest

# import my libraries
from downloader.downloader import *
from downloader import BinanceBulkDownloader


def dynamic_metrics_test_params():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_premiumindexklines.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import pytest

# import my libraries
from downloader.downloader import *
from downloader import BinanceBulkDownloader


def dynamic_premiumindexklines_test_params():
Expand Down
2 changes: 1 addition & 1 deletion tests/test_trades.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import pytest

# import my libraries
from downloader.downloader import *
from downloader import BinanceBulkDownloader


def dynamic_trades_test_params():
Expand Down

0 comments on commit 3df7bf5

Please sign in to comment.