From 43c74a2ba9692b2938cd3f4949fc681cbf7fd166 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Nowak?= Date: Tue, 14 Nov 2023 18:43:34 +0100 Subject: [PATCH] refacotr tests --- .github/workflows/test-kedro-new.yml | 6 +++--- {tests/mini-poetry => mini-poetry/tests}/config.yml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename {tests/mini-poetry => mini-poetry/tests}/config.yml (80%) diff --git a/.github/workflows/test-kedro-new.yml b/.github/workflows/test-kedro-new.yml index bd2c920..a694fd6 100644 --- a/.github/workflows/test-kedro-new.yml +++ b/.github/workflows/test-kedro-new.yml @@ -42,7 +42,7 @@ jobs: kedro new \ --starter ${{ matrix.starter }} \ --directory ${{ matrix.directory }} \ - --config tests/${{ matrix.directory }}/config.yml \ + --config ${{ matrix.directory }}/tests/config.yml \ --verbose - name: Run kedro new (remote) @@ -52,7 +52,7 @@ jobs: --starter ${{ matrix.starter }} \ --directory ${{ matrix.directory }} \ --checkout ${{ matrix.branch_name }} \ - --config tests/${{ matrix.directory }}/config.yml \ + --config ${{ matrix.directory }}/tests/config.yml \ --verbose - name: Check that the project directory exists @@ -103,7 +103,7 @@ jobs: pip install kedro==${{ matrix.kedro-init-version }} - name: Init kedro project - run: kedro new --starter ./${{ matrix.directory }} --config tests/${{ matrix.directory }}/config.yml --verbose + run: kedro new --starter ./${{ matrix.directory }} --config ${{ matrix.directory }}/tests/config.yml --verbose - name: Install dependencies with poetry working-directory: test-project diff --git a/tests/mini-poetry/config.yml b/mini-poetry/tests/config.yml similarity index 80% rename from tests/mini-poetry/config.yml rename to mini-poetry/tests/config.yml index 41653e1..a347d4b 100644 --- a/tests/mini-poetry/config.yml +++ b/mini-poetry/tests/config.yml @@ -2,7 +2,7 @@ # by specifying the `project_name` parameter. # During the test we run -# > kedro new --starter mini-poetry --config tests/mini-poetry/config.yml +# > kedro new --starter mini-poetry --config mini-poetry/tests/config.yml project_name: "test-project" project_description: "test-project description" project_author_name: "test-project author"