Skip to content

Add a requirements.txt file. #2

Add a requirements.txt file.

Add a requirements.txt file. #2

Workflow file for this run

name: Run pytest
# Allow to trigger the workflow manually (e.g. when deps changes)
on: [push, workflow_dispatch]
jobs:
pytest-job:
runs-on: ubuntu-latest
timeout-minutes: 20
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
# Uncomment to cache of pip dependencies (if tests run too slowly)
# cache: pip
- name: Install dependencies
run: pip install --upgrade pip
run: pip --version

Check failure on line 27 in .github/workflows/run_pytest.yml

View workflow run for this annotation

GitHub Actions / Run pytest

Invalid workflow file

The workflow is not valid. .github/workflows/run_pytest.yml (Line: 27, Col: 7): 'run' is already defined .github/workflows/run_pytest.yml (Line: 28, Col: 7): 'run' is already defined
run: pip install -r requirements.txt
run: pip freeze
- name: Run tests
run: pytest -vv -n auto