diff --git a/.github/workflows/test_python_script.yml b/.github/workflows/test_python_script.yml index 7b7e8509..5a991199 100644 --- a/.github/workflows/test_python_script.yml +++ b/.github/workflows/test_python_script.yml @@ -40,20 +40,6 @@ jobs: coverage run -m unittest discover -s scripts -p 'test_update_index.py' coverage xml -o coverage/coverage.xml coverage report + #print the coverage report to the console + cat coverage/coverage.xml continue-on-error: true - - - 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\`\`\``; - const issue_number = context.payload.pull_request ? context.payload.pull_request.number : context.issue.number; - github.rest.issues.createComment({ - issue_number: issue_number, - owner: context.repo.owner, - repo: context.repo.repo, - body: comment - }); \ 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 78c4c03d..96ca90e2 100644 Binary files a/scripts/__pycache__/test_update_index.cpython-311.pyc and b/scripts/__pycache__/test_update_index.cpython-311.pyc differ diff --git a/scripts/__pycache__/update_index.cpython-311.pyc b/scripts/__pycache__/update_index.cpython-311.pyc index 0f2ff837..234cf712 100644 Binary files a/scripts/__pycache__/update_index.cpython-311.pyc and b/scripts/__pycache__/update_index.cpython-311.pyc differ diff --git a/scripts/update_index.py b/scripts/update_index.py index 31476b81..412451c1 100644 --- a/scripts/update_index.py +++ b/scripts/update_index.py @@ -1,7 +1,7 @@ # This script works only for Technical correction updates, e.g. augmenting from 4.0.1 to 4.0.2. For Major or Minor updates, the script needs to be adjusted to handle the versioning correctly or it should be done manually. # This script is used in an action to update the index.html file with the latest data from IG-folder Version added to the IG Folder. Alternatively a Version for the update can be provided as an argument. -# Test updaet # todo remove +# Test update # todo remove import os import sys