]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
ci(windows): use bash as default shell
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 21 Dec 2024 03:50:45 +0000 (04:50 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sun, 22 Dec 2024 01:38:39 +0000 (02:38 +0100)
Make packages-bin and tests workflow consistent.

.github/workflows/packages-bin.yml
.github/workflows/tests.yml

index 8de84ddf4533fc6bdecaf10bce49e6c89d86418d..6102be1074c6732542b8bec51e939a9a56c2454b 100644 (file)
@@ -217,10 +217,13 @@ jobs:
         arch: [win_amd64]
         pyver: [cp38, cp39, cp310, cp311, cp312, cp313]
 
+    defaults:
+      run:
+        shell: bash
+
     steps:
       # there are some other libpq in PATH
       - run: rm -rf c:/tools/php C:/Strawberry/c/bin
-        shell: bash
 
       - uses: actions/checkout@v4
 
@@ -229,6 +232,7 @@ jobs:
           $PgSvc = Get-Service "postgresql*"
           Set-Service $PgSvc.Name -StartupType manual
           $PgSvc.Start()
+        shell: powershell
 
       - name: Export GitHub Actions cache environment variables
         uses: actions/github-script@v7
index 73d9fa0925a15f050d1e01019f33db11a8f2fce9..a5d9757073153b66c3563397e4323a0218e69c6f 100644 (file)
@@ -321,7 +321,7 @@ jobs:
           $PgSvc = Get-Service "postgresql*"
           Set-Service $PgSvc.Name -StartupType manual
           $PgSvc.Start()
-        shell: pwsh
+        shell: powershell
 
       # Refcount tests are flakey on windows, often they fail with the likes of:
       #