Skip to content
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

Uncached python version getting uncompressed in repo dir #106

Closed
2 of 5 tasks
phoolish opened this issue Jul 8, 2020 · 2 comments
Closed
2 of 5 tasks

Uncached python version getting uncompressed in repo dir #106

phoolish opened this issue Jul 8, 2020 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@phoolish
Copy link

phoolish commented Jul 8, 2020

Describe the bug
Ran into an issue if the python version needs to be downloaded, the tar'd file is uncompressed in the same directory as the - uses: actions/checkout@v2 step. This caused our python linter to fail. We had to reorder the steps, so that the setup-python action was run before the checkout step.

/bin/tar xz --warning=no-unknown-keyword -C ./UUID -f /home/runner/work/_temp/UUID

Which version of the action are you using?

  • v2

Environment

  • self-hosted
  • Linux
  • Windows
  • Mac

If applicable, please specify if you're using a container

Python Versions
3.6.10

To Reproduce

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Set up Python
        uses: actions/setup-python@v2
        with:
          python-version: 3.6.10
      - run: pip install flake8
      - run: flake8 .

Solved by

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Set up Python
        uses: actions/setup-python@v2
        with:
          python-version: 3.6.10
      - uses: actions/checkout@v2
      - run: pip install flake8
      - run: flake8 .
@phoolish phoolish added the bug Something isn't working label Jul 8, 2020
@konradpabjan
Copy link
Collaborator

Looks like a duplicate of #101

This is being fixed but the root cause is the same. Downloads of Python will be uncompressed in the runner temp directory

@MaksimZhukov
Copy link
Contributor

Hello @phoolish !
We have provided a solution for this issue. Please see this issue for more details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants