Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install Airflow with constraints in tests #74

Merged
merged 11 commits into from
Jan 30, 2024

Conversation

bryzgaloff
Copy link
Owner

@bryzgaloff bryzgaloff commented Jan 29, 2024

This PR adds --constraint argument to pip install for the project's tests. It ensures that all the packages are installed in their "validated" versions for Airflow to work without issues. Also, failing versions combinations are excluded.

Additionally, workflow file is simplified to merge DB API 2.0 and clickhouse-driver tests configurations.

Excluded versions combinations do not have available constraints files
Was mistakenly added, this commit reverts it from combinations which do not require common-sql package installation
Configuration simplified to reduce duplication
Multiple include options do not work properly: one key requires to be added to the matrix
common.sql requires SQLExecuteQueryOperator which was only added in common.sql ver. 1.3.0. Only Airflow 2.5.1 includes common.sql >= 1.3.0 in its constraints file => all earlier versions are excluded.
To avoid warnings in GitHub Actions
@bryzgaloff bryzgaloff merged commit 72bbc07 into master Jan 30, 2024
68 checks passed
@bryzgaloff bryzgaloff deleted the tests-airflow-constraints branch January 30, 2024 09:23
@bryzgaloff bryzgaloff mentioned this pull request Jan 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant