From ea9a37d686025feab2bc7a195286aac905540c64 Mon Sep 17 00:00:00 2001 From: ArslanSaleem Date: Wed, 8 Jan 2025 20:56:12 +0100 Subject: [PATCH] fix: ci use pyproject --- .github/workflows/ci.yml | 31 ++++++------------------------- 1 file changed, 6 insertions(+), 25 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d438353d8..afd2e4767 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -54,10 +54,7 @@ jobs: echo "Installing dependencies for $dir" ( cd "$dir" || exit - poetry install --all-extras - poetry add pytest@7.4.0 - poetry add pytest-mock@3.11.1 - poetry add pytest-cov@4.1.0 + poetry install --all-extras --with test --verbose ) echo "Running tests for $dir" ( @@ -75,10 +72,7 @@ jobs: echo "Installing dependencies for $dir" ( cd "$dir" || exit - poetry install --all-extras - poetry add pytest@7.4.0 - poetry add pytest-mock@3.11.1 - poetry add pytest-cov@4.1.0 + poetry install --all-extras --with test --verbose ) echo "Running tests for $dir" ( @@ -96,10 +90,7 @@ jobs: echo "Installing dependencies for $dir" ( cd "$dir" || exit - poetry install --all-extras - poetry add pytest@7.4.0 - poetry add pytest-mock@3.11.1 - poetry add pytest-cov@4.1.0 + poetry install --all-extras --with test --verbose ) echo "Running tests for $dir" ( @@ -118,10 +109,7 @@ jobs: if (Test-Path $testDir) { Write-Host "Running tests for $($_.FullName)" Push-Location $_.FullName - poetry install --all-extras - poetry add pytest@7.4.0 - poetry add pytest-mock@3.11.1 - poetry add pytest-cov@4.1.0 + poetry install --all-extras --with test --verbose poetry run pytest tests/ Pop-Location } @@ -133,10 +121,7 @@ jobs: if (Test-Path $testDir) { Write-Host "Running tests for $($_.FullName)" Push-Location $_.FullName - poetry install --all-extras - poetry add pytest@7.4.0 - poetry add pytest-mock@3.11.1 - poetry add pytest-cov@4.1.0 + poetry install --all-extras --with test --verbose poetry run pytest tests/ Pop-Location } @@ -148,11 +133,7 @@ jobs: if (Test-Path $testDir) { Write-Host "Running tests for $($_.FullName)" Push-Location $_.FullName - poetry install --all-extras - poetry add pytest@7.4.0 - poetry add pytest-mock@3.11.1 - poetry add pytest-cov@4.1.0 - poetry run pytest tests/ + poetry install --all-extras --with test --verbose Pop-Location } }