From 09980f828797146a8e84dbe0a48275ae08daccf0 Mon Sep 17 00:00:00 2001 From: aditya-balachander Date: Wed, 18 Dec 2024 11:32:29 +0530 Subject: [PATCH] Add workflow for running unit tests with optional dependencies --- .github/workflows/feature_test.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/feature_test.yml b/.github/workflows/feature_test.yml index 9433041f85..001f4b9faf 100644 --- a/.github/workflows/feature_test.yml +++ b/.github/workflows/feature_test.yml @@ -63,6 +63,30 @@ jobs: - name: Run Pytest run: uv run pytest --cov-report= --cov=cumulusci + unit_tests_opt_deps: + name: "Unit tests with optional dependencies: ${{ matrix.os }}-${{ matrix.python-version }}" + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [macos-latest, SFDO-Tooling-Ubuntu, SFDO-Tooling-Windows] + python-version: ["3.11", "3.12", "3.13"] + steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "${{ matrix.python-version }}" + - name: Set up uv + uses: SFDO-Tooling/setup-uv@main + with: + version: "0.5.0" + enable-cache: true + - name: Install dependencies + run: uv sync --all-extras -p ${{ matrix.python-version }} + - name: Run Pytest + run: uv run pytest --cov-report= --cov=cumulusci + robot_api: name: "Robot: No browser" runs-on: SFDO-Tooling-Ubuntu