From aa9f6e129bf223469fb44b23e15a529b4fd834bf Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Sun, 11 Jun 2023 08:12:34 +0200 Subject: [PATCH] Change working directory for breeze unit tests 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. --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f59da1b9bf1f7..fe183f49b18b0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: