jason810496 commented on code in PR #62928: URL: https://github.com/apache/airflow/pull/62928#discussion_r2891082099
########## AGENTS.md: ########## @@ -12,23 +12,30 @@ ## Commands -- **Run a single test:** `breeze run pytest path/to/test.py::TestClass::test_method -xvs` -- **Run a test file:** `breeze run pytest path/to/test.py -xvs` -- **Run a Python script:** `breeze run python dev/my_script.py` +`<PROJECT>` is folder where pyproject.toml of the package you want to test is located. For example, `airflow-core` or `providers/amazon`. +`<target_branch>` is the branch the PR will be merged into — usually `main`, but could be `v3-1-test` when creating a PR for the 3.1 branch. + +- **Run a single test:** `uv run --project <PROJECT> pytest path/to/test.py::TestClass::test_method -xvs` +- **Run a test file:** `uv run --project <PROJECT> pytest path/to/test.py -xvs` +- **Run all tests in package:** `uv run --project <PROJECT> pytest path/to/package -xvs` +- **If uv tests fail with missing system dependencies, run the tests with breeze**: `breeze run pytest <tests> -xvs` Review Comment: Nice! I like idea of using `uv` first and if the env goes wrong then fallback to `breeze run`. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
