Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/1.0.3/pytest cicd #13

Merged
merged 9 commits into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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