Skip to content

Commit

Permalink
Merge pull request #317 from Zerohertz/chore-v1.1.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Zerohertz authored Oct 31, 2024
2 parents 5deae58 + b5fbf81 commit f715835
Show file tree
Hide file tree
Showing 89 changed files with 427 additions and 286 deletions.
6 changes: 3 additions & 3 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
### Features

+ SUBMODULE_NAME
+ FEAT: CONTENTS (resolves: #ISSUE_NUMBER)
...
- SUBMODULE_NAME
- FEAT: CONTENTS (resolves: #ISSUE_NUMBER)
...

### Chore

Expand Down
17 changes: 15 additions & 2 deletions .github/workflows/cicd-pr-dev-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,21 @@ jobs:
source venv/bin/activate
sudo apt update
sudo apt install python3-opencv -y
pip install pytest
pytest
pip install pytest pytest-cov
pytest --cov --cov-report=xml --junitxml=junit.xml -o junit_family=legacy
- name: Upload test results to Codecov
uses: codecov/test-results-action@v1
with:
flags: python3.11
token: ${{ secrets.CODECOV_TOKEN }}
if: always()

- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
if: always()

- name: Slack webhook
uses: 8398a7/action-slack@v3
Expand Down
17 changes: 15 additions & 2 deletions .github/workflows/cicd-push-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,21 @@ jobs:
source venv/bin/activate
sudo apt update
sudo apt install python3-opencv -y
pip install pytest
pytest
pip install pytest pytest-cov
pytest --cov --cov-report=xml --junitxml=junit.xml -o junit_family=legacy
- name: Upload test results to Codecov
uses: codecov/test-results-action@v1
with:
flags: python3.11
token: ${{ secrets.CODECOV_TOKEN }}
if: always()

- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
if: always()

- name: Slack webhook
uses: 8398a7/action-slack@v3
Expand Down
150 changes: 75 additions & 75 deletions .github/workflows/cicd-push-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,78 +59,78 @@ jobs:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_CHECK }}
if: always()

deploy-github:
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Tag and push
env:
GH_USERNAME: ${{ secrets.GH_USERNAME }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
VERSION=$(cat zerohertzLib/__init__.py | grep __version__ | sed 's/.*= "\(.*\)"/\1/')
git config --global user.email "[email protected]"
git config --global user.name "${GH_USERNAME}"
git config --global credential.helper "!f() { echo username=${GH_USERNAME}; echo password=${GH_TOKEN}; }; f"
git tag ${VERSION}
git push origin ${VERSION}
- name: Slack webhook
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
author_name: zerohertzLib
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
if_mention: failure,cancelled
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_CHECK }}
if: always()

deploy-pypi:
runs-on: ubuntu-latest
needs: [build]
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.11

- name: Cache virtualenv
uses: actions/cache@v4
with:
path: venv
key: ${{ runner.os }}-python-venv
restore-keys: |
${{ runner.os }}-python-venv-
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: build-artifacts
path: dist

- name: Deploy to PyPI
env:
PYPI_USERNAME: ${{ secrets.GH_USERNAME }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
run: |
source venv/bin/activate
pip install twine
twine upload -u ${PYPI_USERNAME} -p ${PYPI_TOKEN} dist/*
- name: Slack webhook
uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
author_name: zerohertzLib
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
if_mention: failure,cancelled
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_CHECK }}
if: always()
# deploy-github:
# runs-on: ubuntu-latest
# needs: [build]
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
#
# - name: Tag and push
# env:
# GH_USERNAME: ${{ secrets.GH_USERNAME }}
# GH_TOKEN: ${{ secrets.GH_TOKEN }}
# run: |
# VERSION=$(cat zerohertzLib/__init__.py | grep __version__ | sed 's/.*= "\(.*\)"/\1/')
# git config --global user.email "[email protected]"
# git config --global user.name "${GH_USERNAME}"
# git config --global credential.helper "!f() { echo username=${GH_USERNAME}; echo password=${GH_TOKEN}; }; f"
# git tag ${VERSION}
# git push origin ${VERSION}
#
# - name: Slack webhook
# uses: 8398a7/action-slack@v3
# with:
# status: ${{ job.status }}
# author_name: zerohertzLib
# fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
# if_mention: failure,cancelled
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_CHECK }}
# if: always()
#
# deploy-pypi:
# runs-on: ubuntu-latest
# needs: [build]
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
#
# - name: Set up Python
# uses: actions/setup-python@v5
# with:
# python-version: 3.11
#
# - name: Cache virtualenv
# uses: actions/cache@v4
# with:
# path: venv
# key: ${{ runner.os }}-python-venv
# restore-keys: |
# ${{ runner.os }}-python-venv-
#
# - name: Download build artifacts
# uses: actions/download-artifact@v4
# with:
# name: build-artifacts
# path: dist
#
# - name: Deploy to PyPI
# env:
# PYPI_USERNAME: ${{ secrets.GH_USERNAME }}
# PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
# run: |
# source venv/bin/activate
# pip install twine
# twine upload -u ${PYPI_USERNAME} -p ${PYPI_TOKEN} dist/*
#
# - name: Slack webhook
# uses: 8398a7/action-slack@v3
# with:
# status: ${{ job.status }}
# author_name: zerohertzLib
# fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
# if_mention: failure,cancelled
# env:
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_CHECK }}
# if: always()
6 changes: 4 additions & 2 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[MESSAGES CONTROL]
disable = C0116, C0301, C0302, E1101, E1133, R0801, R0902, R0903, R0911, R0912, R0913, R0914, R0915, W0201, W0212, W0613, W0718, W1401
disable = C0116, C0301, C0302, E1101, E1133, R0801, R0902, R0903, R907, R0911, R0912, R0913, R0914, R0915, R0917, W0201, W0212, W0613, W0718, W1401

; C0116: Missing function or method docstring (missing-function-docstring)
; C0301: Line too long (line-too-long)
Expand All @@ -9,13 +9,15 @@ disable = C0116, C0301, C0302, E1101, E1133, R0801, R0902, R0903, R0911, R0912,
; R0801: Similar lines in 2 files
; R0902: Too many instance attributes (too-many-instance-attributes)
; R0903: Too few public methods (too-few-public-methods)
; R0907: Too many positional arguments (*/5) (too-many-positional-arguments)
; R0911: Too many return statements (too-many-return-statements)
; R0912: Too many branches (too-many-branches)
; R0913: Too many arguments (too-many-arguments)
; R0914: Too many local variables (too-many-locals)
; R0915: Too many statements (too-many-statements)
; R0917: Too many positional arguments (*/5) (too-many-positional-arguments)
; W0201: Attribute '*' defined outside __init__ (attribute-defined-outside-init)
; W0212: Access to a protected member * of a client class (protected-access)
; W0613: Unused argument '*' (unused-argument)
; W0718: Catching too general exception Exception (broad-exception-caught)
; W1401: Anomalous backslash in string: '\.'. String constant might be missing an r prefix. (anomalous-backslash-in-string)
; W1401: Anomalous backslash in string: '\.'. String constant might be missing an r prefix. (anomalous-backslash-in-string)
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
<a href="https://app.codacy.com/gh/Zerohertz/zerohertzLib/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade">
<img src="https://app.codacy.com/project/badge/Grade/b08b1d140ee54ae1aa8ee251cb5888ff"/>
</a>
<a href="https://codecov.io/github/Zerohertz/zerohertzLib" >
<img src="https://codecov.io/github/Zerohertz/zerohertzLib/graph/badge.svg?token=6OAPJIZ2NX"/>
</a>
</p>

```bash
Expand Down
16 changes: 16 additions & 0 deletions codecov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
coverage:
status:
project:
default:
target: 100%
patch:
default:
target: 100%

comment:
layout: "condensed_header, condensed_files, diff, flags, files, condensed_footer"
behavior: default
require_changes: false
require_base: false
require_head: false
hide_project_coverage: false
4 changes: 2 additions & 2 deletions docs/.buildinfo
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Sphinx build info version 1
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 2295c2129dca9d0dbb5e80a230d13c02
# This file records the configuration used when building these files. When it is not found, a full rebuild will be done.
config: 42bdd5c5b1074d55d752d8e7e6a69aab
tags: 645f666f9bcd5a90fca523b33c5a78b7
Binary file modified docs/_images/monitoring.storage.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/plot.candle.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/plot.hist.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/plot.plot.1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/plot.plot.2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/plot.scatter.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/quant.bollinger_bands.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/quant.macd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/quant.momentum.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/quant.moving_average.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/quant.rsi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/vision.grid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/vision.mask.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/vision.vert.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions docs/_sources/index.md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@
<a href="https://app.codacy.com/gh/Zerohertz/zerohertzLib/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade">
<img src="https://app.codacy.com/project/badge/Grade/b08b1d140ee54ae1aa8ee251cb5888ff"/>
</a>
<a href="https://codecov.io/github/Zerohertz/zerohertzLib" >
<img src="https://codecov.io/github/Zerohertz/zerohertzLib/graph/badge.svg?token=6OAPJIZ2NX"/>
</a>
</p>

```bash
Expand Down
30 changes: 0 additions & 30 deletions docs/_sources/release/v0.1.md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -347,33 +347,3 @@
+ Jenkins์—์„œ Sphinx build ํ›„ ๋ณ€๊ฒฝ์‚ฌํ•ญ์ด ์กด์žฌํ•˜์ง€ ์•Š๋Š” ๊ฒƒ์— ๋Œ€ํ•œ ์˜ˆ์™ธ ์ฒ˜๋ฆฌ
+ Legacy code ์ˆ˜์ •

<h3>[v0.1.1] Release (<a href=https://github.com/Zerohertz/zerohertzLib/pull/1>#1</a>)</h3>

```{admonition} Release Date
:class: tip

2023/11/03
```

<p align="center">
<a href="https://github.com/Zerohertz/zerohertzLib/pulls?q=is:pr label:fix"><img src="https://img.shields.io/badge/fix-d73a4a?style=flat-square&logo=github" alt="fix"/></a>
<a href="https://github.com/Zerohertz/zerohertzLib/pulls?q=is:pr label:feat/algorithm"><img src="https://img.shields.io/badge/feat/algorithm-0759DE?style=flat-square&logo=github" alt="feat/algorithm"/></a>
<a href="https://github.com/Zerohertz/zerohertzLib/pulls?q=is:pr label:chore"><img src="https://img.shields.io/badge/chore-fef2c0?style=flat-square&logo=github" alt="chore"/></a>
<a href="https://github.com/Zerohertz/zerohertzLib/pulls?q=is:pr label:docs"><img src="https://img.shields.io/badge/docs-E1B40A?style=flat-square&logo=github" alt="docs"/></a>
<a href="https://github.com/Zerohertz/zerohertzLib/pulls?q=is:pr label:release"><img src="https://img.shields.io/badge/release-00FF00?style=flat-square&logo=github" alt="release"/></a>
</p>


<h4>Features</h4>

+ `algorithm`
+ `bfs`, `dfs` ๊ฐœ๋ฐœ

<h4>Chore</h4>

+ Sphinx build pipeline ๊ตฌ์ถ•

<h4>Docs</h4>

+ Sphinx ์ดˆ๊ธฐ ์„ค์ •

Loading

0 comments on commit f715835

Please sign in to comment.