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 \