Skip to content

Python Action not supported #81

@elleobrien

Description

@elleobrien

I see in the README example how to install Python "manually", but there's a GH action setup-python already built for installing Python that seems recommended.

I was trying this out with the cml docker container, and there seems to be an odd interaction between the docker container and setup-python.

For example, if I'm not using our docker container and run this workflow:

name: your-workflow-name

on: [push]

jobs:
  run:
    runs-on: [ubuntu-latest]
    container: docker://dvcorg/dvc-cml:latest

    steps:
      - uses: actions/checkout@v2
      
      - name: Set up Python
        uses: actions/setup-python@v1
        with:
          python-version: '3.x'
          
      - name: Display Python version
        run: python -c "import sys; print(sys.version)"
      
      - name: Install dependencies
        run: |
          python -m pip install --upgrade pip 
          pip install sklearn

Everything runs beautifully. As soon as I add container: docker://dvcorg/dvc-cml:latest to the .yaml file, though, I hit the following error:

image

Any ideas?

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions