Commit 4350de07 authored by Jan Kiene's avatar Jan Kiene
Browse files

disable tests and fix artifacts for format jobs

parent 2c7de775
Loading
Loading
Loading
Loading
Loading
+6 −4
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@ stages:
# ------------------------------------

# test the format conversion only
test_audiotools_convert:
.test_audiotools_convert:
  stage: test
  tags:
    - linux
@@ -35,7 +35,7 @@ test_audiotools_convert:
    - python3 -m pytest -n auto tests/test_audiotools_convert.py

# run some test configs for item creation
test_processing:
.test_processing:
  stage: test
  tags:
    - linux
@@ -64,11 +64,13 @@ format:
    - linux
  allow_failure: true
  script:
    - mkdir $ARTIFACT_FOLDER

    - isort_diff_file="$ARTIFACT_BASE_NAME--isort-formatting-fix.patch"
    - isort --df --check --color --profile black . | tee $ARTIFACT_FOLDER/$isort_diff_files || ret_val_isort=$?
    - isort --df --check --color --profile black . | tee ${ARTIFACT_FOLDER}/${isort_diff_file} || ret_val_isort=$?

    - black_diff_file="$ARTIFACT_BASE_NAME--black-formatting-fix.patch"
    - black --diff --check . | tee $ARTIFACT_FOLDER/$black_diff_file || ret_val_black=$?
    - black --diff --check . | tee ${ARTIFACT_FOLDER}/${black_diff_file} || ret_val_black=$?
    - if [[ $ret_val_isort != 0 || $ret_val_black != 0 ]]; then exit 1; fi
  artifacts:
    paths: