This commit is contained in:
Dan Saunders
2025-09-29 12:08:23 -04:00
parent f137ce50ec
commit b436ecf61f

View File

@@ -4,7 +4,7 @@ set -e
python -c "import torch; assert '$PYTORCH_VERSION' in torch.__version__" python -c "import torch; assert '$PYTORCH_VERSION' in torch.__version__"
# Run unit tests with initial coverage report # Run unit tests with initial coverage report
pytest -v --durations=10 -n8 \ uv run pytest -v --durations=10 -n8 \
--ignore=tests/e2e/ \ --ignore=tests/e2e/ \
--ignore=tests/patched/ \ --ignore=tests/patched/ \
--ignore=tests/cli \ --ignore=tests/cli \
@@ -12,36 +12,36 @@ pytest -v --durations=10 -n8 \
--cov=axolotl --cov=axolotl
# Run lora kernels tests with coverage append # Run lora kernels tests with coverage append
pytest -v --durations=10 \ uv run pytest -v --durations=10 \
/workspace/axolotl/tests/e2e/patched/lora_kernels \ /workspace/axolotl/tests/e2e/patched/lora_kernels \
--cov=axolotl \ --cov=axolotl \
--cov-append --cov-append
# Run patched tests excluding lora kernels with coverage append # Run patched tests excluding lora kernels with coverage append
pytest --full-trace -vvv --durations=10 \ uv run pytest --full-trace -vvv --durations=10 \
--ignore=tests/e2e/patched/lora_kernels \ --ignore=tests/e2e/patched/lora_kernels \
/workspace/axolotl/tests/e2e/patched \ /workspace/axolotl/tests/e2e/patched \
--cov=axolotl \ --cov=axolotl \
--cov-append --cov-append
# Run solo tests with coverage append # Run solo tests with coverage append
pytest -v --durations=10 -n1 \ uv run pytest -v --durations=10 -n1 \
/workspace/axolotl/tests/e2e/solo/ \ /workspace/axolotl/tests/e2e/solo/ \
--cov=axolotl \ --cov=axolotl \
--cov-append --cov-append
# Run integration tests with coverage append # Run integration tests with coverage append
pytest -v --durations=10 \ uv run pytest -v --durations=10 \
/workspace/axolotl/tests/e2e/integrations/ \ /workspace/axolotl/tests/e2e/integrations/ \
--cov=axolotl \ --cov=axolotl \
--cov-append --cov-append
pytest -v --durations=10 /workspace/axolotl/tests/cli \ uv run pytest -v --durations=10 /workspace/axolotl/tests/cli \
--cov=axolotl \ --cov=axolotl \
--cov-append --cov-append
# Run remaining e2e tests with coverage append and final report # Run remaining e2e tests with coverage append and final report
pytest -v --durations=10 \ uv run pytest -v --durations=10 \
--ignore=tests/e2e/solo/ \ --ignore=tests/e2e/solo/ \
--ignore=tests/e2e/patched/ \ --ignore=tests/e2e/patched/ \
--ignore=tests/e2e/multigpu/ \ --ignore=tests/e2e/multigpu/ \
@@ -52,4 +52,4 @@ pytest -v --durations=10 \
--cov-append \ --cov-append \
--cov-report=xml:e2e-coverage.xml --cov-report=xml:e2e-coverage.xml
codecov upload-process -t $CODECOV_TOKEN -f e2e-coverage.xml -F e2e,pytorch-${PYTORCH_VERSION} || true uv run codecov upload-process -t $CODECOV_TOKEN -f e2e-coverage.xml -F e2e,pytorch-${PYTORCH_VERSION} || true