From 5231c31922eff11aaa4c530d6b67d2aa4f2f4872 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 | 8 +++----- wpiformat/tox.ini | 12 ------------ 2 files changed, 3 insertions(+), 17 deletions(-) delete mode 100644 wpiformat/tox.ini diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eea0ab7..db7557e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,8 +29,7 @@ jobs: with: python-version: ${{ matrix.python-version }} - - name: Install Python dependencies - run: pip install build + - run: pip install build - name: Install wpiformat run: | @@ -39,15 +38,14 @@ jobs: pip install dist/*.whl shell: bash - - name: Install test dependencies - run: pip install tox + - run: pip install pytest - 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