From fb4879948ac4180220ddecaef7280e27286a4e8f Mon Sep 17 00:00:00 2001 From: Lucas Weber Date: Fri, 19 Apr 2024 15:12:16 +0200 Subject: [PATCH] checkout the test files for the test --- .github/workflows/test_pypi.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/test_pypi.yml b/.github/workflows/test_pypi.yml index 50ad9ae..1f3d16b 100644 --- a/.github/workflows/test_pypi.yml +++ b/.github/workflows/test_pypi.yml @@ -52,6 +52,14 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} + + # https://github.com/actions/checkout#fetch-only-a-single-file + # get only the test files for the test of the installed package + - name: Get the test scripts from the original repository + uses: actions/checkout@v4 + with: + sparse-checkout: | + tests - name: Install dependencies # https://packaging.python.org/en/latest/guides/using-testpypi/ run: |