Skip to content

Commit a70f317

Browse files
author
MH l
committed
Merge remote-tracking branch 'origin/master'
2 parents 2917acb + 90a8f04 commit a70f317

File tree

6 files changed

+46
-16
lines changed

6 files changed

+46
-16
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
pytest --cov --cov-branch --cov-report=xml
3+
4+
- name: Upload coverage reports to Codecov
5+
uses: codecov/codecov-action@v5
6+
with:
7+
token: ${{ secrets.CODECOV_TOKEN }}
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
name: Run tests and upload coverage
1+
name: Run Tests and Upload to Codecov
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [ master ]
66
pull_request:
7+
branches: [ master ]
78

89
jobs:
910
test:
@@ -16,20 +17,19 @@ jobs:
1617
- name: Set up Python
1718
uses: actions/setup-python@v4
1819
with:
19-
python-version: "3.12"
20+
python-version: 3.11
2021

2122
- name: Install dependencies
2223
run: |
2324
python -m pip install --upgrade pip
2425
pip install -r requirements.txt
25-
pip install pytest pytest-cov coverage
26+
pip install pytest pytest-cov codecov
2627
2728
- name: Run tests with coverage
2829
run: |
2930
pytest --cov=src --cov-report=xml
3031
3132
- name: Upload to Codecov
32-
uses: codecov/codecov-action@v4
33+
uses: codecov/codecov-action@v3
3334
with:
34-
token: ${{ secrets.CODECOV_TOKEN }} # Only if private repo
35-
files: coverage.xml
35+
files: ./coverage.xml

LICENSE

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
MIT License
22

3-
Copyright (c) 2024 Mohammad Hossein Zardary
3+
Copyright (c) 2025 Mohammad Hossein Zardary
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the Software), to deal
6+
of this software and associated documentation files (the "Software"), to deal
77
in the Software without restriction, including without limitation the rights
88
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
99
copies of the Software, and to permit persons to whom the Software is
@@ -12,16 +12,14 @@ furnished to do so, subject to the following conditions:
1212
The above copyright notice and this permission notice shall be included in all
1313
copies or substantial portions of the Software.
1414

15-
THE SOFTWARE IS PROVIDED AS IS, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1717
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
SOFTWARE.
2222

23-
--------------------------------------------------------------------
24-
DISCLAIMER:
25-
This project is intended for **educational and research purposes only**.
26-
It does not constitute financial advice, and the author is not liable for
27-
any losses, risks, or outcomes resulting from its use in real trading.
23+
This software is provided for educational and research purposes only.
24+
Use it at your own risk. The author assumes no responsibility for any losses or damages
25+
resulting from the use of this software.

LICENSE.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Mohammad Hossein Zardary
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
22+
23+
24+
**Disclaimer**: This software is provided for educational and research purposes only.
25+
Use it at your own risk. The author assumes no responsibility for any losses or damages
26+
resulting from the use of this software.

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
[![codecov](https://codecov.io/gh/YOUR_USERNAME/YOUR_REPO/branch/main/graph/badge.svg)](https://codecov.io/gh/mhzardary/london-strategy-backtest)
88

99

10-
1110
While studying various strategies for trading the FOREX market, I came across the **"London Open Breakout
1211
Strategy"** — a well-known approach aimed at achieving stable, low-risk profits.[1],[2],[3]
1312

requirements.txt

-586 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)