From 6dc9816722153c49c8c2ec6401062a18b233dc72 Mon Sep 17 00:00:00 2001 From: Dan Saunders Date: Wed, 1 Oct 2025 10:18:50 -0400 Subject: [PATCH] fix --- .github/workflows/tests.yml | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cf561f40c..c65f0cf64 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -82,8 +82,7 @@ jobs: - name: Install dependencies run: | uv pip show --system torch - uv pip install --system wheel - uv pip install --system pytest + uv pip install --system wheel pytest pytest-xdist pytest-cov printf "torch==${{ matrix.pytorch_version }}\n" > torch-constraints.txt uv pip install --system --no-build-isolation -e ".[dev]" --constraints torch-constraints.txt set -o pipefail @@ -104,10 +103,10 @@ jobs: - name: Run tests run: | - python -m pytest -v --durations=10 -n8 --dist loadfile --ignore=tests/e2e/ --ignore=tests/patched/ --ignore=tests/cli/ --ignore=tests/monkeypatch/ tests/ --cov=axolotl --cov-report=xml - python -m pytest -v --durations=10 tests/monkeypatch/ --cov=axolotl --cov-append --cov-report=xml - python -m pytest -v --durations=10 tests/patched/ --cov=axolotl --cov-append --cov-report=xml - python -m pytest -v --durations=10 tests/cli/ --cov=axolotl --cov-append --cov-report=xml + python -m pytest -v --durations=10 -n 8 --dist loadfile --cov=axolotl --cov-report=xml --ignore=tests/e2e/ --ignore=tests/patched/ --ignore=tests/cli/ --ignore=tests/monkeypatch/ tests/ + python -m pytest -v --durations=10 -n 8 --cov=axolotl --cov-append --cov-report=xml tests/monkeypatch/ + python -m pytest -v --durations=10 -n 8 --cov=axolotl --cov-append --cov-report=xml tests/patched/ + python -m pytest -v --durations=10 -n 8 --cov=axolotl --cov-append --cov-report=xml tests/cli/ - name: Upload coverage to Codecov uses: codecov/codecov-action@v5 @@ -156,9 +155,8 @@ jobs: - name: Install dependencies run: | uv pip show --system torch - uv pip install --system wheel + uv pip install --system wheel pytest pytest-xdist pytest-cov uv pip install --system build - uv pip install --system pytest python -m build --sdist uv pip install --system dist/*.tar.gz python scripts/unsloth_install.py | sh @@ -179,9 +177,9 @@ jobs: - name: Run tests run: | - python -m pytest -v --durations=10 -n8 --dist loadfile --ignore=tests/e2e/ --ignore=tests/patched/ --ignore=tests/cli/ --ignore=tests/monkeypatch/ tests/ --cov=axolotl --cov-report=xml - python -m pytest -v --durations=10 tests/monkeypatch/ --cov=axolotl --cov-append --cov-report=xml - python -m pytest -v --durations=10 tests/cli/ + python -m pytest -v --durations=10 -n 8 --dist loadfile --cov=axolotl --cov-report=xml --ignore=tests/e2e/ --ignore=tests/patched/ --ignore=tests/cli/ --ignore=tests/monkeypatch/ tests/ + python -m pytest -v --durations=10 -n 8 --cov=axolotl --cov-append --cov-report=xml tests/monkeypatch/ + python -m pytest -v --durations=10 -n 8 tests/cli/ gate-skip-e2e: needs: [pre-commit, pytest, pytest-sdist]