From b89f67ccdb7f7982cda4baec511e049b4db98fbc Mon Sep 17 00:00:00 2001 From: Valentina Vecchio Date: Fri, 18 Apr 2025 15:44:36 +0100 Subject: [PATCH] add pytest to dev --- .github/workflows/python-app.yml | 3 +-- pyproject.toml | 3 +++ {_tests => tests}/test_generate_team.py | 0 3 files changed, 4 insertions(+), 2 deletions(-) rename {_tests => tests}/test_generate_team.py (100%) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 4041c45..ba8ab67 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -26,7 +26,6 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install pytest - pip install . + pip install ".[dev]" - name: Test with pytest run: pytest diff --git a/pyproject.toml b/pyproject.toml index 90f02ac..47c1377 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,3 +18,6 @@ randomfpl = "randomfpl:main" [tool.pytest.ini_options] asyncio_mode = "strict" asyncio_default_fixture_loop_scope = "function" + +[project.optional-dependencies] +dev = ["pytest"] diff --git a/_tests/test_generate_team.py b/tests/test_generate_team.py similarity index 100% rename from _tests/test_generate_team.py rename to tests/test_generate_team.py