Skip to content

Commit

Permalink
Change working directory for breeze unit tests (#31839)
Browse files Browse the repository at this point in the history
The recent version of pytest released on June 10th introduced
change that it will read conftest tests starting in the directory
which is current working directory, this causes breeze tests run
with working directory being top airflow directory to fail because
it's requirements do not contain a few libraries that are used
in airflow's conftest.py

This change rather than specifying directory at pytest command
line, changes working directory for the tests.

(cherry picked from commit 3206719)
  • Loading branch information
potiuk committed Jun 11, 2023
1 parent 0726552 commit 930c862
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,8 @@ jobs:
cache-dependency-path: ./dev/breeze/setup*
- run: python -m pip install --editable ./dev/breeze/
- run: breeze setup version
- run: python -m pytest ./dev/breeze/ -n auto --color=yes
- run: python -m pytest -n auto --color=yes
working-directory: ./dev/breeze/
- run: breeze setup check-all-params-in-groups

tests-www:
Expand Down

0 comments on commit 930c862

Please sign in to comment.