From 74e324c9abc763e7b3231f7fa7262aa47953c5b0 Mon Sep 17 00:00:00 2001 From: Lendemor Date: Wed, 9 Oct 2024 15:11:06 +0200 Subject: [PATCH] fix units-text with macOS excluded --- .github/workflows/unit_tests.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index aa3c12d58..d15e7f7f9 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -27,7 +27,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, windows-latest, macos-12] + os: [ubuntu-latest, windows-latest] python-version: ['3.9.18', '3.10.13', '3.11.5', '3.12.0'] # Windows is a bit behind on Python version availability in Github exclude: @@ -37,7 +37,6 @@ jobs: python-version: '3.9.18' - os: macos-12 python-version: '3.12.0' - if: github.event_name == 'push' && github.ref == 'refs/heads/main' include: - os: windows-latest python-version: '3.10.11' @@ -62,14 +61,11 @@ jobs: steps: - uses: actions/checkout@v4 - uses: ./.github/actions/setup_build_env - if: matrix.os != 'macos-12' || (github.event_name == 'push' && github.ref == 'refs/heads/main') with: python-version: ${{ matrix.python-version }} run-poetry-install: true create-venv-at-path: .venv - name: Run unit tests - # Run the macOS job only on merge to the main branch - if: matrix.os != 'macos-12' || (github.event_name == 'push' && github.ref == 'refs/heads/main') run: | export PYTHONUNBUFFERED=1 poetry run pytest tests/units --cov --no-cov-on-fail --cov-report= @@ -81,12 +77,10 @@ jobs: poetry run pytest tests/units --cov --no-cov-on-fail --cov-report= # Change to explicitly install v1 when reflex-hosting-cli is compatible with v2 - name: Run unit tests w/ pydantic v1 - if: matrix.os != 'macos-12' || (github.event_name == 'push' && github.ref == 'refs/heads/main') run: | export PYTHONUNBUFFERED=1 poetry run uv pip install "pydantic~=1.10" poetry run pytest tests/units --cov --no-cov-on-fail --cov-report= - name: Generate coverage report - if: matrix.os != 'macos-12' || (github.event_name == 'push' && github.ref == 'refs/heads/main') run: poetry run coverage html