Github Action с Pytest - PullRequest
       4

Github Action с Pytest

0 голосов
/ 19 февраля 2020

Я получаю сообщение об ошибке, что команда pytest не найдена. Ниже мой файл действий. Я использую pipfile.lock для установки зависимостей.

name: Python application

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Set up Python 3.8
      uses: actions/setup-python@v1
      with:
        python-version: 3.7
    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip
        pip install pipenv
        pipenv install --dev
    - name: Test with pytest
      run: |
        pytest

1 Ответ

0 голосов
/ 04 марта 2020

Похоже, вы никогда не устанавливали pytest.

Попробуйте добавить pip install в раздел pytest:

- name: Test with pytest
  run: |
    pip install pytest
    pytest
...