Skip to content

Commit

Permalink
fix py install
Browse files Browse the repository at this point in the history
  • Loading branch information
f-peverali committed Oct 15, 2024
1 parent de0832b commit 48eb85d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions .github/workflows/test_python_script.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
if [ -f requirements.txt ]; then pip install -r requirements.txt; else echo "requirements.txt not found"; fi
- name: Run tests
id: run_tests
Expand All @@ -39,19 +39,4 @@ jobs:
pip install coverage
coverage run -m unittest discover -s tests -p '*.py'
coverage xml -o coverage/coverage.xml
coverage report
- name: Post test results as comment
if: always()
uses: actions/github-script@v4
with:
script: |
const fs = require('fs');
const results = fs.readFileSync('coverage/coverage.xml', 'utf8');
const comment = `## Test Results\n\n\`\`\`xml\n${results}\n\`\`\``;
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: comment
});
coverage report
Binary file modified scripts/__pycache__/test_update_index.cpython-311.pyc
Binary file not shown.

0 comments on commit 48eb85d

Please sign in to comment.