diff --git a/.github/workflows/test_python_script.yml b/.github/workflows/test_python_script.yml index 02cfe718..1576f709 100644 --- a/.github/workflows/test_python_script.yml +++ b/.github/workflows/test_python_script.yml @@ -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 @@ -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 - }); \ No newline at end of file + coverage report \ No newline at end of file diff --git a/scripts/__pycache__/test_update_index.cpython-311.pyc b/scripts/__pycache__/test_update_index.cpython-311.pyc index f25a0647..78c4c03d 100644 Binary files a/scripts/__pycache__/test_update_index.cpython-311.pyc and b/scripts/__pycache__/test_update_index.cpython-311.pyc differ