Skip to content

CI job cannot setup python #3155

@Boiarshinov

Description

@Boiarshinov

update_directory_md job always fails because of lack of python in a CI agent with specified version.

Github action failing declaration:

Run actions/setup-python@master
  with:
    token: ***

Error message:

Error: The specified python version file at: /home/runner/work/Java/Java/.python-version does not exist

I'm not familiar with github actions, but examples in setup-python action repository always specify version of python in the .yaml file, not the branch

So i think that problem is in @master part of the job declaration.
Can you try to change this line of job declaration to something like snippet below?

- uses: actions/setup-python@v3

Or maybe release 4.0.0 of that github action could solve our problem, because there is something about python version file in the release notes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions