update workflow

This commit is contained in:
Lendemor 2024-10-09 14:47:56 +02:00
parent ffcf87d587
commit ae2f21263e

View File

@ -41,6 +41,7 @@ jobs:
- os: windows-latest - os: windows-latest
python-version: '3.9.13' python-version: '3.9.13'
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
# Service containers to run with `runner-job` # Service containers to run with `runner-job`
services: services:
# Label used to access the service container # Label used to access the service container
@ -63,6 +64,8 @@ jobs:
run-poetry-install: true run-poetry-install: true
create-venv-at-path: .venv create-venv-at-path: .venv
- name: Run unit tests - 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: | run: |
export PYTHONUNBUFFERED=1 export PYTHONUNBUFFERED=1
poetry run pytest tests/units --cov --no-cov-on-fail --cov-report= poetry run pytest tests/units --cov --no-cov-on-fail --cov-report=
@ -74,6 +77,7 @@ jobs:
poetry run pytest tests/units --cov --no-cov-on-fail --cov-report= 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 # Change to explicitly install v1 when reflex-hosting-cli is compatible with v2
- name: Run unit tests w/ pydantic v1 - name: Run unit tests w/ pydantic v1
if: matrix.os != 'macos-12' || (github.event_name == 'push' && github.ref == 'refs/heads/main')
run: | run: |
export PYTHONUNBUFFERED=1 export PYTHONUNBUFFERED=1
poetry run uv pip install "pydantic~=1.10" poetry run uv pip install "pydantic~=1.10"