From 197cf453576534386ca32431828ed701c1e01c45 Mon Sep 17 00:00:00 2001 From: Giovanni Puccetti Date: Wed, 28 Jun 2023 14:37:03 +0200 Subject: [PATCH] Tiny CI fix (#553) * maybe fix ci * add space * act if no .test_durations * missing file is fine --- .github/workflows/ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c7314f628..2681b943e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -93,9 +93,11 @@ jobs: - name: Unit tests run: | source .env/bin/activate - touch .test_durations - cp .test_durations durations_1 - mv .test_durations durations_2 + if [[ -f .test_durations ]] + then + cp .test_durations durations_1 + mv .test_durations durations_2 + fi python -m pytest \ -x -s -v \ --splitting-algorithm least_duration \