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

Can not start python environment in MacOS #388

Closed
magiskboy opened this issue Oct 12, 2020 · 3 comments
Closed

Can not start python environment in MacOS #388

magiskboy opened this issue Oct 12, 2020 · 3 comments

Comments

@magiskboy
Copy link

I run act push -j fastapi, then I got a error

Screen Shot 2020-10-12 at 09 15 45

This is the action file

name: Test

on: [push]

jobs:
  fastapi:
    runs-on: ubuntu-latest
    # if: "contains(github.event.head_commit.message, 'FASTAPI: ')"
    strategy:
      matrix:
        python-version: [3.6, 3.7, 3.8]
    steps:
    - uses: actions/checkout@v2
    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install cookiecutter
      run: |
        pip install cookiecutter
    - name: Test generate
      run: |
        cookiecutter --no-input fastapi -o target

Who can help me to resolve this problem?

@pergpau
Copy link

pergpau commented Oct 14, 2020

Same problem on Ubuntu 20.04. Workflow works fine on Github Actions, but fail with same error using act.

jobs:
  test:
    runs-on: ubuntu-18.04
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-java@v1
        with:
          java-version: '11'
      - uses: actions/setup-go@v1
        with:
          go-version: '1.13.8'
      - uses: actions/setup-node@v1
        with:
          node-version: '10.x'
      - uses: actions/setup-python@v2
        with:
          python-version: '2.7'
      - name: golangci-lint
        uses: golangci/golangci-lint-action@v1
        with:
          version: v1.30
          working-directory: src/backend

@davidjmeyer
Copy link

I also have this problem, it appears to be a duplicate of #251. As mentioned on that issue, try using the alternative runner image with one of the following flags depending on which image you've specified in your workflow.

-P ubuntu-latest=nektos/act-environments-ubuntu:18.04
or
-P ubuntu-18.04=nektos/act-environments-ubuntu:18.04

@magiskboy
Copy link
Author

this problem was solved 👍 thank you @davidjmeyer

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

No branches or pull requests

3 participants