Skip to content

Commit

Permalink
chore(airflow): Bump apache-airflow version (#511)
Browse files Browse the repository at this point in the history
* Bump apache airflow

Signed-off-by: Ankita Katiyar <[email protected]>

* Change starter

Signed-off-by: Ankita Katiyar <[email protected]>

* Update e2e test steps

Signed-off-by: Ankita Katiyar <[email protected]>

* Update e2e test steps

Signed-off-by: Ankita Katiyar <[email protected]>

---------

Signed-off-by: Ankita Katiyar <[email protected]>
  • Loading branch information
ankatiyar authored Jan 11, 2024
1 parent 94019fd commit 0986bfa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
10 changes: 5 additions & 5 deletions kedro-airflow/features/airflow.feature
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ Feature: Airflow
And I have executed the kedro command "airflow create -t ../airflow/dags/"
When I execute the airflow command "tasks list project-dummy"
Then I should get a successful exit code
And I should get a message including "create-model-input-table-node"
And I should get a message including "preprocess-companies-node"
And I should get a message including "preprocess-shuttles-node"
And I should get a message including "split"
And I should get a message including "train"
And I should get a message including "predict"

Scenario: Run Airflow task locally with latest Kedro
Given I have installed kedro version "latest"
And I have prepared a config file
And I have run a non-interactive kedro new
And I have executed the kedro command "airflow create -t ../airflow/dags/"
And I have installed the kedro project package
When I execute the airflow command "tasks test project-dummy preprocess-companies-node"
When I execute the airflow command "tasks test project-dummy split"
Then I should get a successful exit code
And I should get a message including "Loading data from companies"
And I should get a message including "Loading data"
2 changes: 1 addition & 1 deletion kedro-airflow/features/steps/cli_steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def create_project_from_config_file(context):
"-c",
str(context.config_file),
"--starter",
"spaceflights-pandas",
"astro-airflow-iris",
],
env=context.env,
cwd=str(context.temp_dir),
Expand Down
3 changes: 1 addition & 2 deletions kedro-airflow/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,12 @@ Tracker = "https://github.com/kedro-org/kedro-plugins/issues"

[project.optional-dependencies]
test = [
"apache-airflow<2.7.0", # TODO: Temporary fix, to be reverted
"apache-airflow<3.0",
"bandit",
"behave",
"black~=22.0",
"connexion<3.0.0", # TODO: Temporary fix, connexion has changed their API, but airflow hasn't caught up yet
"kedro-datasets",
"pendulum<3.0.0", # TODO: Also to be removed
"pre-commit>=2.9.2",
"pytest",
"pytest-cov",
Expand Down

0 comments on commit 0986bfa

Please sign in to comment.