From 8bcc4ffc0de90eebc13ec2f5c377243f2828fd1b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADtor=20Araujo?= Date: Mon, 5 Aug 2024 16:03:57 -0300 Subject: [PATCH] CI: change dependencies format --- .github/workflows/{python-app.yml => tests.yml} | 3 +-- pyproject.toml | 3 +++ 2 files changed, 4 insertions(+), 2 deletions(-) rename .github/workflows/{python-app.yml => tests.yml} (90%) 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"