Skip to content

Commit

Permalink
added reporter
Browse files Browse the repository at this point in the history
  • Loading branch information
MKS2345 committed Oct 23, 2024
1 parent 8f5e9f2 commit fe1da44
Showing 1 changed file with 40 additions and 2 deletions.
42 changes: 40 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,20 @@ jobs:
env:
PYTHONPATH: ${{ github.workspace }} # Add workspace to PYTHONPATH

Check notice on line 31 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / Qodana for Python

Typo

Typo: In word 'PYTHONPATH'

Check notice on line 31 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / Qodana for Python

Typo

Typo: In word 'PYTHONPATH'
run: |
.venv/bin/pytest -v --tb=short resources/tests/sanity_tests.py -v
.venv/bin/pytest -v --tb=short resources/tests/sanity_tests.py > sanity_report.txt || echo "Sanity tests failed" >> sanity_report.txt
cat sanity_report.txt
- name: Create Sanity Test Report
run: |
echo "# Sanity Test Results" > sanity_report.md
echo "Results of sanity tests:" >> sanity_report.md
cat sanity_report.txt >> sanity_report.md
- name: Upload Sanity Test Report
uses: actions/upload-artifact@v3
with:
name: sanity-report
path: sanity_report.md

return-tests:
name: Return Tests
Expand All @@ -53,7 +66,21 @@ jobs:
env:
PYTHONPATH: ${{ github.workspace }} # Add workspace to PYTHONPATH

Check notice on line 67 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / Qodana for Python

Typo

Typo: In word 'PYTHONPATH'

Check notice on line 67 in .github/workflows/ci.yml

View workflow job for this annotation

GitHub Actions / Qodana for Python

Typo

Typo: In word 'PYTHONPATH'
run: |
.venv/bin/pytest -v --tb=short resources/tests/return_tests.py
.venv/bin/pytest -v --tb=short resources/tests/return_tests.py > return_report.txt || echo "Return tests failed" >> return_report.txt
cat return_report.txt
- name: Create Return Test Report
run: |
echo "# Return Test Results" > return_report.md
echo "Results of return tests:" >> return_report.md
cat return_report.txt >> return_report.md
- name: Upload Return Test Report
uses: actions/upload-artifact@v3
with:
name: return-report
path: return_report.md

generate-pydoc:
runs-on: ubuntu-latest
name: Generate PyDoc Documentation
Expand Down Expand Up @@ -112,6 +139,17 @@ jobs:
- name: Clean up local docs folder
run: rm -rf docs

- name: Create PyDoc Report
run: |
echo "# PyDoc Generation Results" > pydoc_report.md
echo "Generated documentation in docs directory." >> pydoc_report.md
- name: Upload PyDoc Report
uses: actions/upload-artifact@v3
with:
name: pydoc-report
path: pydoc_report.md

qodana:
name: Qodana
runs-on: ubuntu-latest
Expand Down

0 comments on commit fe1da44

Please sign in to comment.