-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
50 changed files
with
242 additions
and
691 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
version: 2.1 | ||
|
||
executors: | ||
py38: | ||
docker: | ||
- image: circleci/python:3.8 | ||
py37: | ||
docker: | ||
- image: circleci/python:3.7 | ||
py36: | ||
docker: | ||
- image: circleci/python:3.6 | ||
|
||
commands: | ||
setup_requirements: | ||
description: Setup requirements | ||
parameters: | ||
python_version: | ||
type: string | ||
steps: | ||
- checkout | ||
- run: | | ||
sudo chown -R circleci:circleci /usr/local/bin | ||
sudo chown -R circleci:circleci /usr/local/lib/<< parameters.python_version >>/site-packages | ||
- run: | ||
name: Install pip setuptools | ||
command: python -m pip install -U "pip==21.0.1" "setuptools>=38.0" wheel | ||
- run: | ||
command: | | ||
sudo pip install -r test_requirements.txt | ||
e2e_run: | ||
description: Run `kedro run` end to end tests for all starters | ||
steps: | ||
- run: | ||
command: behave features/run.feature | ||
e2e_lint: | ||
description: Run `kedro lint` end to end tests for all starters | ||
steps: | ||
- run: | ||
command: behave features/lint.feature | ||
|
||
jobs: | ||
security_scan: | ||
executor: py38 | ||
steps: | ||
- setup_requirements: | ||
python_version: "python3.8" | ||
- run: | ||
command: bandit -ll -r . | ||
e2e_38: | ||
executor: py38 | ||
steps: | ||
- setup_requirements: | ||
python_version: "python3.8" | ||
- e2e_run | ||
e2e_37: | ||
executor: py37 | ||
steps: | ||
- setup_requirements: | ||
python_version: "python3.7" | ||
- e2e_run | ||
e2e_36: | ||
executor: py36 | ||
steps: | ||
- setup_requirements: | ||
python_version: "python3.6" | ||
- e2e_run | ||
lint_38: | ||
executor: py38 | ||
steps: | ||
- setup_requirements: | ||
python_version: "python3.8" | ||
- e2e_lint | ||
lint_37: | ||
executor: py37 | ||
steps: | ||
- setup_requirements: | ||
python_version: "python3.7" | ||
- e2e_lint | ||
lint_36: | ||
executor: py36 | ||
steps: | ||
- setup_requirements: | ||
python_version: "python3.6" | ||
- e2e_lint | ||
|
||
workflows: | ||
version: 2 | ||
build: | ||
jobs: | ||
- security_scan | ||
- e2e_38 | ||
- e2e_37 | ||
- e2e_36 | ||
- lint_38 | ||
- lint_37 | ||
- lint_36 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
Feature: Lint all starters | ||
|
||
Scenario: Lint astro-iris starter | ||
Given I have prepared a config file | ||
And I have run a non-interactive kedro new with the starter astro-iris | ||
And I have installed the Kedro project's dependencies | ||
When I lint the project | ||
Then I should get a successful exit code | ||
|
||
Scenario: Lint pandas-iris starter | ||
Given I have prepared a config file | ||
And I have run a non-interactive kedro new with the starter pandas-iris | ||
And I have installed the Kedro project's dependencies | ||
When I lint the project | ||
Then I should get a successful exit code | ||
|
||
Scenario: Lint pyspark starter | ||
Given I have prepared a config file | ||
And I have run a non-interactive kedro new with the starter pyspark | ||
And I have installed the Kedro project's dependencies | ||
When I lint the project | ||
Then I should get a successful exit code | ||
|
||
Scenario: Lint pyspark-iris starter | ||
Given I have prepared a config file | ||
And I have run a non-interactive kedro new with the starter pyspark-iris | ||
And I have installed the Kedro project's dependencies | ||
When I lint the project | ||
Then I should get a successful exit code | ||
|
||
Scenario: Lint spaceflights starter | ||
Given I have prepared a config file | ||
And I have run a non-interactive kedro new with the starter spaceflights | ||
And I have installed the Kedro project's dependencies | ||
When I lint the project | ||
Then I should get a successful exit code |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
Feature: Run all starters | ||
|
||
Scenario: Run a Kedro project created from astro-iris | ||
Given I have prepared a config file | ||
And I have run a non-interactive kedro new with the starter astro-iris | ||
And I have installed the Kedro project's dependencies | ||
And I have run the Kedro pipeline | ||
Then I should get a successful exit code | ||
|
||
Scenario: Run a Kedro project created from pandas-iris | ||
Given I have prepared a config file | ||
And I have run a non-interactive kedro new with the starter pandas-iris | ||
And I have installed the Kedro project's dependencies | ||
And I have run the Kedro pipeline | ||
Then I should get a successful exit code | ||
|
||
Scenario: Run a Kedro project created from pyspark | ||
Given I have prepared a config file | ||
And I have run a non-interactive kedro new with the starter pyspark | ||
And I have installed the Kedro project's dependencies | ||
And I have executed the CLI command to list Kedro pipelines | ||
Then I should get a successful exit code | ||
|
||
Scenario: Run a Kedro project created from pyspark-iris | ||
Given I have prepared a config file | ||
And I have run a non-interactive kedro new with the starter pyspark-iris | ||
And I have installed the Kedro project's dependencies | ||
And I have executed the CLI command to list Kedro pipelines | ||
Then I should get a successful exit code | ||
|
||
Scenario: Run a Kedro project created from spaceflights | ||
Given I have prepared a config file | ||
And I have run a non-interactive kedro new with the starter spaceflights | ||
And I have installed the Kedro project's dependencies | ||
And I have run the Kedro pipeline | ||
Then I should get a successful exit code |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.