From 03a7dd62c04238e5eb869473febbabfc70cfabfa Mon Sep 17 00:00:00 2001 From: ffont Date: Tue, 8 Oct 2024 10:26:58 +0200 Subject: [PATCH] Change docker-compose to docker compose in test actions --- .github/workflows/unit-tests.yml | 6 +++--- sounds/management/commands/test_color_schemes.py | 2 +- tagrecommendation/tagrecommendation_settings.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 95df4b540..ca49c296a 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -43,7 +43,7 @@ jobs: continue-on-error: true - name: Pull docker images - run: docker-compose -f docker-compose.test.yml pull + run: docker compose -f docker-compose.test.yml pull - uses: jpribyl/action-docker-layer-caching@v0.1.1 continue-on-error: true @@ -52,10 +52,10 @@ jobs: run: make -C docker - name: Build images - run: docker-compose -f docker-compose.test.yml build db test_runner + run: docker compose -f docker-compose.test.yml build db test_runner - name: Run tests - run: docker-compose -f docker-compose.test.yml run --rm test_runner python manage.py test --noinput --settings=freesound.test_settings + run: docker compose -f docker-compose.test.yml run --rm test_runner python manage.py test --noinput --settings=freesound.test_settings - name: Notify success uses: voxmedia/github-action-slack-notify-build@v1 diff --git a/sounds/management/commands/test_color_schemes.py b/sounds/management/commands/test_color_schemes.py index db6ce042f..b54fb3ac8 100644 --- a/sounds/management/commands/test_color_schemes.py +++ b/sounds/management/commands/test_color_schemes.py @@ -28,7 +28,7 @@ from utils.audioprocessing import color_schemes -# docker-compose run --rm web python manage.py test_color_schemes 415154,415144,413973,402737,403343,194761 +# docker compose run --rm web python manage.py test_color_schemes 415154,415144,413973,402737,403343,194761 class Command(BaseCommand): diff --git a/tagrecommendation/tagrecommendation_settings.py b/tagrecommendation/tagrecommendation_settings.py index 1c9f5c5ed..257f362cc 100755 --- a/tagrecommendation/tagrecommendation_settings.py +++ b/tagrecommendation/tagrecommendation_settings.py @@ -51,7 +51,7 @@ # all tag assingment information from freesound. Once this file exists and has some data, the # "update_tagrecommendation_data.py" script can be run and will generate the following files: # (if running in Docker environment, you can run the script like: -# docker-compose run tagrecommendation bash -c "cd /code; python update_tagrecommendation_data.py" +# docker compose run tagrecommendation bash -c "cd /code; python update_tagrecommendation_data.py" # # For every class used: # [[DATABASE]]_[[CLASSNAME]]_SIMILARITY_MATRIX_cosine_SUBSET.npy