Skip to content

setup-python with container not working #1157

@tomhaber

Description

@tomhaber

Description:
I'm trying to get the following to work, but it gives an error while creating the pip cache. It looks to me as if it's trying to run pip outside of the container with the path inside.

jobs:
  run:
    runs-on: Linux
    container: ghcr.io/iterative/cml:0-dvc3-base1
    steps:
      - uses: actions/checkout@v3
      - uses: iterative/setup-cml@v1
      
      - uses: actions/setup-python@v5
        with:
          python-version: '3.13'
          cache: 'pip' # caching pip dependencies
      # Install requirements
      - run: pip install -r requirements.txt

Action version:
2.325.0

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
3.13, 3.12 but I don't believe it affects the problem

Expected behavior:
Have it run successfully within the container

Actual behavior:
Seems to run pip cache outside of the container with the inside path?

Image

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions