Skip to content
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
50 changes: 50 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI

on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.10", "3.12"]
steps:

- name: Checkout repository
uses: actions/checkout@v6

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install stock-indicators==1.3.1
pip install pylint

- name: Analysing the code with pylint
run: |
pylint $(git ls-files '*.py')

markdown:
Comment on lines +9 to +33
runs-on: ubuntu-slim
steps:
- name: Checkout source code
uses: actions/checkout@v6
- name: Lint markdown
uses: DavidAnson/markdownlint-cli2-action@v23

lint-and-test:
Comment on lines +34 to +41
runs-on: ubuntu-slim
needs: [build, markdown]
if: always()
steps:
- name: Verify required jobs succeeded
if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}
run: |
echo "One or more required jobs did not succeed."
exit 1
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
Comment on lines +42 to +50
29 changes: 0 additions & 29 deletions .github/workflows/lint-code.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .markdownlint-cli2.jsonc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"globs": ["**/*.md"],
"gitignore": true,
"ignores": ["node_modules/**"],
"config": {
"default": true,
"MD003": { "style": "atx" },
"MD004": { "style": "dash" },
"MD007": { "indent": 2 },
"MD013": false, // allow long lines
"MD024": { "siblings_only": true },
"MD028": false, // allow separation between quote blocks
"MD033": {
"allowed_elements": ["details", "summary", "br", "sub", "sup", "kbd", "abbr", "a", "img"]
},
"MD041": false,
"MD046": { "style": "fenced" },
"MD048": { "style": "backtick" },
"MD055": { "style": "leading_and_trailing" },
"MD060": { "style": "compact", "aligned_delimiter": false }
}
}