diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e707983432d7951c7bed76e8b1d2f3812929ca5f..99f7dfd4529b316a1bcf1e47886a7d8414f256b5 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -81,7 +81,8 @@ jobs:
         cabal update
         autoreconf --version
         autoreconf -i
-        cabal test all --test-show-details=direct
+        # test filepath >= 1.5
+        cabal test --constraint='filepath >= 1.5.0.0' all --test-show-details=direct
 
   i386:
     runs-on: ubuntu-latest