From 7049f1decb7d3988eb662fbae67879403bacd72a Mon Sep 17 00:00:00 2001 From: f-peverali <112709306+f-peverali@users.noreply.github.com> Date: Tue, 15 Oct 2024 12:08:11 +0200 Subject: [PATCH] test --- .github/workflows/test_python_script.yml | 18 ++---------------- .../test_update_index.cpython-311.pyc | Bin 9577 -> 9525 bytes .../__pycache__/update_index.cpython-311.pyc | Bin 5468 -> 5468 bytes scripts/update_index.py | 2 +- 4 files changed, 3 insertions(+), 17 deletions(-) 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 78c4c03d3448e51a81ddf60774e0fc73461691fe..96ca90e25fd3075687cb3a05e9d03902d057f700 100644 GIT binary patch delta 208 zcmaFqwbhGvIWI340}u$?@TE&^3R07M6wWg$PL5H0JvmHiA*1=^A4+p1HCf{rKQLe+C$Cj*=dl1< wcZ(%AF*C2oda{Fx1f%ohNR^eg4$O=oUAU delta 253 zcmdn$_0o%XIWI340}wE(@}*mCAjX1k^AuV`N}h4a5+@$WX(u zfOYamX>mq2ASpUoPDY54ZL^__Gz%m9WM2g-Hr9fo%)FAxX$lt@4JMl_zUIHn!Fz#E z{vwCM6%K_9914?_lom2tOg^GCM^cM5j`0Hn7IJc>ayySD(8gOVxrv#1MK+UpR3sQ( hCabEfv~^@=1nI&}O~|++rv4G4;0vlcpUK>+S^yJAKOO)8 diff --git a/scripts/__pycache__/update_index.cpython-311.pyc b/scripts/__pycache__/update_index.cpython-311.pyc index 0f2ff8374d47e9f4544e736cd186783743491a9b..234cf71220674915577061dc5129e712e4690fab 100644 GIT binary patch delta 93 zcmcbkbw`VLIWI340}!y<^QAA}$g9B0C_h<`^(&*&W)(IAMn=`mq3m-R*))MFin}I9 wu}g0j=44}L)ZHw_lg-3vwYiPYk&)4P^9g=?CPuf-975+98F@Be7j9()00DUxbN~PV delta 93 zcmcbkbw`VLIWI340}xaw@}+ldQ1-cuZ0bN2#a)x5 w*rhiMbFwirYHya}$!21-*xbhF$jIop`2@c`6Qj#!4xw|5j2xS<3%4=?01!PEmH+?% 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