From 3a48a124e294de2b65e20baf38042fcb73f03e60 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" <1619840+vkbo@users.noreply.github.com> Date: Fri, 2 Apr 2021 16:02:40 +0200 Subject: [PATCH] Linux tests 3.6 and 3.7 should also push to codecov --- .github/workflows/test_linux_3.6.yml | 6 +++++- .github/workflows/test_linux_3.7.yml | 6 +++++- setup.py | 4 ++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test_linux_3.6.yml b/.github/workflows/test_linux_3.6.yml index 5f99496e..a13d7c11 100644 --- a/.github/workflows/test_linux_3.6.yml +++ b/.github/workflows/test_linux_3.6.yml @@ -26,8 +26,12 @@ jobs: pip install --upgrade pip pip install -r requirements.txt pip install pytest-timeout + pip install pytest-cov pip install pytest-qt + pip install codecov - name: Run Tests run: | export QT_QPA_PLATFORM=offscreen - pytest -v --timeout=60 + pytest -v --cov=nw --timeout=60 + - name: Upload to Codecov + uses: codecov/codecov-action@v1 diff --git a/.github/workflows/test_linux_3.7.yml b/.github/workflows/test_linux_3.7.yml index f057beb6..1b323b9c 100644 --- a/.github/workflows/test_linux_3.7.yml +++ b/.github/workflows/test_linux_3.7.yml @@ -26,8 +26,12 @@ jobs: pip install --upgrade pip pip install -r requirements.txt pip install pytest-timeout + pip install pytest-cov pip install pytest-qt + pip install codecov - name: Run Tests run: | export QT_QPA_PLATFORM=offscreen - pytest -v --timeout=60 + pytest -v --cov=nw --timeout=60 + - name: Upload to Codecov + uses: codecov/codecov-action@v1 diff --git a/setup.py b/setup.py index 9b7d019c..022a1247 100755 --- a/setup.py +++ b/setup.py @@ -635,6 +635,10 @@ def xdgInstall(): else: print(f"Error {exCode}: Could not update icon cache") + # Clean up + if os.path.isfile("./novelwriter.desktop"): + os.unlink("./novelwriter.desktop") + print("") print("Done!") print("")