diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1876f68..5958fa1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -33,7 +33,9 @@ jobs: - name: Install dependencies run: | + pip install --upgrade pip pip install -e . + pip install pytest pytest-cov responses # pip install --group test - uses: BSFishy/pip-action@v1 with: diff --git a/pyproject.toml b/pyproject.toml index 8d4a493..4f9a38a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -40,11 +40,6 @@ dependencies = [ 'beautifulsoup4', 'decorator', 'geocoder', # map - 'pytest', # testing - 'pytest-cov<4', # testing - 'responses', # testing - #'mkdocs', # docs - #'mkdocs-material', # docs 'python-magic', # figure embed 'pillow', ] @@ -94,3 +89,13 @@ omit = ["**/*test.py"] addopts = "--cov=customblocks" +[dependency-groups] +test = [ + "pytest", + "pytest-cov", + "responses", +] +docs = [ + "mkdocs", # docs + "mkdocs-material", # docs +]