Skip to content

CI job cannot setup python #3155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Boiarshinov opened this issue Jun 20, 2022 · 2 comments
Closed

CI job cannot setup python #3155

Boiarshinov opened this issue Jun 20, 2022 · 2 comments
Labels

Comments

@Boiarshinov
Copy link
Contributor

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

@siriak
Copy link
Member

siriak commented Jun 21, 2022

Interesting, could you create a PR with the proposed changes? I would be glad to get it working

@siriak siriak added the bug label Jun 21, 2022
@Boiarshinov Boiarshinov mentioned this issue Jun 21, 2022
7 tasks
@Boiarshinov
Copy link
Contributor Author

It seems to work :D
#3157

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants