diff --git a/.github/workflows/build-test-codecov.yml b/.github/workflows/build-test-codecov.yml index 393f7b7..803958b 100644 --- a/.github/workflows/build-test-codecov.yml +++ b/.github/workflows/build-test-codecov.yml @@ -32,8 +32,7 @@ jobs: run: | python3 -m pip install -U pip python3 -m pip install -U build - python3 -m pip install flake8 pytest - python3 -m pip install -r requirements.txt + python3 -m pip install flake8 - name: Lint with flake8 run: | @@ -46,11 +45,7 @@ jobs: run: | python3 -m build # install the package in editable mode for the coverage report - python3 -m pip install -e . - - - name: Install dependencies for coverage report - run: | - python3 -m pip install pytest pytest-cov coverage + python3 -m pip install -e .["pytest"] - name: Generate coverage report run: | diff --git a/.github/workflows/test-release-candidate.yaml b/.github/workflows/test-release-candidate.yaml index 6fc4e23..c1b4963 100644 --- a/.github/workflows/test-release-candidate.yaml +++ b/.github/workflows/test-release-candidate.yaml @@ -70,10 +70,8 @@ jobs: run: | python -m pip install --upgrade pip python -m pip install flake8 - python -m pip install pytest pytest-cov coverage python -m pip install -U build - python -m pip install -r requirements.txt - python -m pip install --editable .[test] + python -m pip install --editable .["pytest"] - name: Sanity check with flake8 run: | diff --git a/pyproject.toml b/pyproject.toml index 78c74bf..2820128 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -35,7 +35,7 @@ dependencies = [ ] [project.optional-dependencies] -testing = [ +pytest = [ "pytest", "pytest-cov", "pytest-flake8",