|
1 | | -name: Test | Pytest |
| 1 | +# name: Test | Pytest |
2 | 2 |
|
3 | | -on: |
4 | | - pull_request: |
5 | | - push: |
6 | | - branches: ['*'] |
| 3 | +# on: |
| 4 | +# pull_request: |
| 5 | +# push: |
| 6 | +# branches: ['*'] |
7 | 7 |
|
8 | | -jobs: |
9 | | - pytest: |
10 | | - runs-on: windows-latest |
| 8 | +# jobs: |
| 9 | +# pytest: |
| 10 | +# runs-on: windows-latest |
11 | 11 |
|
12 | | - steps: |
13 | | - - name: Checkout repository |
14 | | - uses: actions/checkout@v4 |
| 12 | +# steps: |
| 13 | +# - name: Checkout repository |
| 14 | +# uses: actions/checkout@v4 |
15 | 15 |
|
16 | | - - name: Set up Python |
17 | | - uses: actions/setup-python@v4 |
18 | | - with: |
19 | | - python-version: '3.11' |
20 | | - cache: 'pip' |
| 16 | +# - name: Set up Python |
| 17 | +# uses: actions/setup-python@v4 |
| 18 | +# with: |
| 19 | +# python-version: '3.11' |
| 20 | +# cache: 'pip' |
21 | 21 |
|
22 | | - - name: Install dependencies |
23 | | - run: | |
24 | | - python -m pip install --upgrade pip |
25 | | - pip install pytest pytest-cov MetaTrader5 |
26 | | - pip install -e . |
| 22 | +# - name: Install dependencies |
| 23 | +# run: | |
| 24 | +# python -m pip install --upgrade pip |
| 25 | +# pip install pytest pytest-cov MetaTrader5 |
| 26 | +# pip install -e . |
27 | 27 |
|
28 | | - - name: Run tests with coverage |
29 | | - run: | |
30 | | - pytest -k . --cov=mqpy --cov-append --cov-report=term-missing:skip-covered --junitxml=pytest.xml -x | tee pytest-coverage.txt |
| 28 | +# - name: Run tests with coverage |
| 29 | +# run: | |
| 30 | +# pytest -k . --cov=mqpy --cov-append --cov-report=term-missing:skip-covered --junitxml=pytest.xml -x | tee pytest-coverage.txt |
31 | 31 |
|
32 | | - - name: Generate coverage summary |
33 | | - shell: pwsh |
34 | | - run: | |
35 | | - "## Test Coverage Summary" | Out-File -FilePath summary.md -Encoding utf8 |
36 | | - '```' | Out-File -FilePath summary.md -Append -Encoding utf8 |
37 | | - Get-Content pytest-coverage.txt | Out-File -FilePath summary.md -Append -Encoding utf8 |
38 | | - '```' | Out-File -FilePath summary.md -Append -Encoding utf8 |
39 | | - Get-Content summary.md | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append -Encoding utf8 |
| 32 | +# - name: Generate coverage summary |
| 33 | +# shell: pwsh |
| 34 | +# run: | |
| 35 | +# "## Test Coverage Summary" | Out-File -FilePath summary.md -Encoding utf8 |
| 36 | +# '```' | Out-File -FilePath summary.md -Append -Encoding utf8 |
| 37 | +# Get-Content pytest-coverage.txt | Out-File -FilePath summary.md -Append -Encoding utf8 |
| 38 | +# '```' | Out-File -FilePath summary.md -Append -Encoding utf8 |
| 39 | +# Get-Content summary.md | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append -Encoding utf8 |
0 commit comments