diff --git a/.github/workflows/python-app.yml b/.github/workflows/tests.yml similarity index 90% rename from .github/workflows/python-app.yml rename to .github/workflows/tests.yml index 929e306..52742a2 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/tests.yml @@ -23,8 +23,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install flake8 pytest codecov pytest-cov pytest-mock - pip install -r requirements.txt + pip install pip install .[tests] - name: Lint with flake8 run: | # stop the build if there are Python syntax errors or undefined names diff --git a/pyproject.toml b/pyproject.toml index d13dce6..3ca9bd9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -16,6 +16,9 @@ build-backend = "hatchling.build" [tool.hatch.metadata.hooks.requirements_txt] files = ["requirements.txt"] +[project.optional-dependencies] +tests = ["flake8", "pytest", "pytest-mock", "codecov", "pytest-cov"] + [project.scripts] update_dns = "dns_updater.cli:main"