Skip to content

Commit

Permalink
single step with if
Browse files Browse the repository at this point in the history
  • Loading branch information
rnoxy committed Nov 14, 2023
1 parent 0e67e63 commit dc9a0f0
Showing 1 changed file with 13 additions and 15 deletions.
28 changes: 13 additions & 15 deletions .github/workflows/test-kedro-new.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,20 @@ jobs:
- name: Show kedro info
run: kedro info

- name: Run kedro new (local)
if: matrix.starter == '.'
- name: Run kedro new
run: |
kedro new \
--starter ${{ matrix.starter }} \
--directory ${{ matrix.directory }} \
--config tests/${{ matrix.directory }}/config.yml
- name: Run kedro new (remote)
if: matrix.starter != '.'
run: |
kedro new \
--starter ${{ matrix.starter }} \
--directory ${{ matrix.directory }} \
--checkout ${{ matrix.branch_name }} \
--config tests/${{ matrix.directory }}/config.yml
if [[ "${{ matrix.starter }}" == "." ]]; then
kedro new
--starter ${{ matrix.starter }}
--directory ${{ matrix.directory }}
--config tests/${{ matrix.directory }}/config.yml
else
kedro new
--starter ${{ matrix.starter }}
--directory ${{ matrix.directory }}
--checkout ${{ matrix.branch_name }}
--config tests/${{ matrix.directory }}/config.yml
fi
- name: Check that the project directory exists
run: |
Expand Down

0 comments on commit dc9a0f0

Please sign in to comment.