]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
ci: skip refcount tests on scheduled jobs
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 13 Feb 2024 10:45:27 +0000 (11:45 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Tue, 13 Feb 2024 10:45:27 +0000 (11:45 +0100)
.github/workflows/tests.yml

index 9fb9421a8fae0795757705357cfc5f248f322c77..c91e939c55e654ac55f8a67820b254ab5baec195 100644 (file)
@@ -225,6 +225,15 @@ jobs:
           $PgSvc.Start()
         shell: pwsh
 
+      # Refcount tests are flakey on windows, often they fail with the likes of:
+      #
+      #   AssertionError: objects leaked: 0, -2
+      #
+      # Avoid the morning bother of a failed workflow.
+      - name: Exclude refcount tests in daily tests
+        if: ${{ github.event_name == 'schedule' }}
+        run: echo "NOT_MARKERS=$NOT_MARKERS refcount" >> $GITHUB_ENV
+
       - name: Build the C wheel
         if: ${{ matrix.impl == 'c' }}
         run: |