Skip to content

Task dev dependencies #356

Description

@sjawhar

I recently tried to use my go-to pytest-mock in a test for tasks and realized I couldn't add dev dependencies to a task. I then realized that pytest is being installed inside all task containers, which I couldn't understand for the life of me until I saw it was being smuggled in with the metr-task-standard. I'd like to propose the following:

  1. We add another task-test stage to the dockerfile that extends the final task stage. This stage installs pytest and also looks for requirements.dev.txt and installs them.
  2. Use the task-test stage when building the docker image for viv task test
  3. Remove pytest as a dependency of metr-task-standard

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions