diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bdd9969b1..7a12d6c03 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -139,6 +139,7 @@ jobs: runs-on: windows-latest env: DATABASE_URL_ESSARCH: 'mssql://SA:MyPassword42@localhost:1433/essarch?CONN_MAX_AGE=100&CONN_HEALTH_CHECKS=True&isolation_level=read committed&driver=ODBC Driver 18 for SQL Server&extra_params=TrustServerCertificate=yes' + steps: - uses: actions/checkout@v6 @@ -165,7 +166,7 @@ jobs: - name: Cache pip wheels uses: actions/cache@v5 with: - path: ${{ env.LOCALAPPDATA }}\pip\Cache + path: C:\Users\runneradmin\AppData\Local\pip\Cache key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements/*.txt') }} restore-keys: | ${{ runner.os }}-pip- @@ -176,19 +177,7 @@ jobs: path: C:\installers key: windows-installers-gtk3-3.24.31-odbc18 - - name: Cache Chocolatey packages - uses: actions/cache@v5 - with: - path: C:\ProgramData\chocolatey\lib - key: ${{ runner.os }}-choco-${{ hashFiles('.github/workflows/*.yml') }} - - - name: Cache Chocolatey downloads - uses: actions/cache@v5 - with: - path: C:\Users\runneradmin\AppData\Local\Temp\chocolatey - key: ${{ runner.os }}-choco-downloads - - - name: Install system dependencies (cached) + - name: Install system dependencies id: deps run: | if (!(Get-Service -Name 'MSSQLSERVER' -ErrorAction SilentlyContinue)) { @@ -210,8 +199,6 @@ jobs: choco install redis-64 --version 3.0.503 -y } - - name: Install - run: | if (!(Test-Path "C:\installers")) { New-Item -ItemType Directory -Path "C:\installers" } @@ -241,8 +228,10 @@ jobs: if (-not $odbcInstalled) { Write-Error "ODBC installation failed!" exit 1 - } + } + - name: Install + run: | python -m pip install --upgrade pip wheel setuptools git config user.email test git config user.name test