diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 91b97b0..dd31250 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -30,7 +30,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install pytest + pip install -r requirements.txt - name: Run tests run: | @@ -39,7 +39,6 @@ jobs: - name: Run tests with coverage if: matrix.python-version == '3.11' && matrix.os == 'ubuntu-latest' run: | - pip install pytest-cov pytest tests/ --cov=. --cov-report=xml --cov-report=term - name: Upload coverage reports diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..d4c8dfd --- /dev/null +++ b/requirements.txt @@ -0,0 +1,3 @@ +# Only needed for testing +pytest>=7.0.0 +pytest-cov>=4.0.0