From 57bdce86a06b84111ebad5b087086934a9304278 Mon Sep 17 00:00:00 2001 From: Sina Atalay Date: Thu, 12 Oct 2023 19:52:57 +0200 Subject: [PATCH] debug ubuntu tests --- .github/workflows/python-tests.yml | 7 +++++++ tests/test_rendering.py | 3 --- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index f584cf89..ed523253 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -39,6 +39,13 @@ jobs: run: | pip install pytest pytest-cov pytest --cov-report html --cov="." tests/ + continue-on-error: true + - name: Upload artifacts + if: ${{matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10'}} + uses: actions/upload-artifact@v3 + with: + name: reference_files + path: ./tests/reference_files - name: Upload coverage data to smokeshow if: ${{matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'}} # upload coverage once run: | diff --git a/tests/test_rendering.py b/tests/test_rendering.py index daf67782..e823613a 100644 --- a/tests/test_rendering.py +++ b/tests/test_rendering.py @@ -415,9 +415,6 @@ class TestDataModel(unittest.TestCase): os.path.getsize(pdf_file) == os.path.getsize(reference_pdf_file) ) - # Remove the output file: - os.remove(pdf_file) - nonexistent_latex_file_path = os.path.join( os.path.dirname(__file__), "reference_files", "nonexistent.tex" )