Skip to content

The new GitHub action does not work? #643

@lewoudar

Description

@lewoudar

Current Behavior

I'm trying the new GitHub action in a dummy project and I ended up with this ci file

name: CI

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:
  build:
    timeout-minutes: 20
    runs-on: ${{ matrix.os }}
    strategy:
      max-parallel: 6
      matrix:
        os: [ 'ubuntu-latest', 'macos-latest' ]
        python: [ pypy-3.7, pypy-3.8, 3.7, 3.8, 3.9, '3.10' ]
    steps:
      - uses: actions/checkout@v2
      - name: Set up Python ${{ matrix.python }}
        uses: actions/setup-python@v2
        with:
          python-version: ${{ matrix.python }}
      # here's where things go wrong
      - name: Set up nox
        uses: wntrblm/nox
        with:
          python-versions: ${{ matrix.python }}
      - name: Set up poetry
        uses: abatilo/actions-poetry@v2.1.3
      - name: Lint
        run: nox -s lint
      - name: Security checks
        run: nox -t security
      - name: Tests
        run: nox -s tests

When GitHub action is launched, I immediately receive this message:

[Error: .github#L1](https://github.com/lewoudar/noxtest/commit/5882afe8c4c57f35b4c6e2cb5249d5bffff34c2d#annotation_4253444940)
the `uses' attribute must be a path, a Docker image, or owner/repo@ref

Expected Behavior

The GitHub action should run without error.

Steps To Reproduce

Use a GitHub action file like the previous one I put.

Environment

- OS: Ubuntu's latest version
- Python: 3.7 - 3.10
- Nox: 2022.8.7

Anything else?

No response

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