Bind-mount host dirs in astro dev pytest to match astro dev start by jlaneve · Pull Request #2016 · astronomer/astro-cli
Previously, `astro dev pytest` created an ephemeral container and only copied `dags/` and `.astro/` into it via `docker cp`. This meant `tests/`, `plugins/`, and `include/` were only available if baked into the Docker image with COPY, unlike `astro dev start` which bind-mounts all four directories via docker-compose. Switch to `-v` bind mounts on `docker create` for dags/, tests/, plugins/, and include/ so that host files are always visible without needing COPY in the Dockerfile. The `.astro/` folder continues to use `docker cp` due to inconsistent `.dockerignore` behavior across platforms. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
marked this pull request as ready for review
jlaneve
deleted the
fix/pytest-bind-mount-host-dirs
branch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters