diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml
index 359ac575..6f4bea3b 100644
--- a/.github/workflows/tests.yaml
+++ b/.github/workflows/tests.yaml
@@ -26,8 +26,7 @@ jobs:
         env:
           TESTDB: actions.cnf
         run: |
-          pip install -U pip
           pip install -U coverage pytest pytest-cov
           pip install .
-          pytest --cov ./MySQLdb
+          pytest --cov=MySQLdb tests
       - uses: codecov/codecov-action@v1