I am getting error that pytest command not found. Below is my action file. I am using pipfile.lock to install dependencies.
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
Looks like you never actually installed pytest.
Try adding a pip install to your pytest section:
- name: Test with pytest
run: |
pip install pytest
pytest
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With