From fdfebec4c5ab5a785f8b04453759509ca0a41bf8 Mon Sep 17 00:00:00 2001 From: Tyler Veness Date: Wed, 13 Nov 2024 17:15:03 -0800 Subject: [PATCH] Avoid duplicate test runs in CI Tox is running the tests for every Python instance listed in tox.ini when CI should just be calling pytest. --- .github/workflows/ci.yml | 5 +---- wpiformat/tox.ini | 12 ------------ 2 files changed, 1 insertion(+), 16 deletions(-) delete mode 100644 wpiformat/tox.ini diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eea0ab7..4a6b954 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,15 +39,12 @@ jobs: pip install dist/*.whl shell: bash - - name: Install test dependencies - run: pip install tox - - name: Run unit tests run: | git config --global user.email "you@example.com" git config --global user.name "Your Name" cd wpiformat - tox + pytest - name: wpiformat - whole repo run: | diff --git a/wpiformat/tox.ini b/wpiformat/tox.ini deleted file mode 100644 index 099e16e..0000000 --- a/wpiformat/tox.ini +++ /dev/null @@ -1,12 +0,0 @@ -[tox] -min_version = 4.0 -env_list = - py38 - py39 - py310 - py311 - py312 - -[testenv] -deps = pytest -commands = pytest