From 48eb85d8675518d69ae424272b264bd6fe254b31 Mon Sep 17 00:00:00 2001 From: f-peverali <112709306+f-peverali@users.noreply.github.com> Date: Tue, 15 Oct 2024 11:34:30 +0200 Subject: [PATCH] fix py install --- .github/workflows/test_python_script.yml | 19 ++---------------- .../test_update_index.cpython-311.pyc | Bin 9577 -> 9577 bytes 2 files changed, 2 insertions(+), 17 deletions(-) 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 f25a06471b8f20be610a37c011df6297998259a7..78c4c03d3448e51a81ddf60774e0fc73461691fe 100644 GIT binary patch delta 150 zcmaFq_0o%PIWI340}wE(@}*lTY~+jLV$|H6$u*0a(PA?TUl%i@*XDjfPiDsK%{N7+ zu`!Z`xj^a}8{_=V;ffC!89gRjD626lOpaGJW^~y+SvjB4)|r_xj`0HnZfZit6*2XX P5CvaQ)dftpSJeUlzzr#<