diff --git a/.github/workflows/build_and_release.yml b/.github/workflows/build_and_release.yml index 166538a..d660818 100644 --- a/.github/workflows/build_and_release.yml +++ b/.github/workflows/build_and_release.yml @@ -55,14 +55,37 @@ jobs: - name: Build sdist run: python setup.py sdist - - name: Test sdist can be installed - run: pip install -v dist/*.tar.gz - - uses: actions/upload-artifact@v4 with: name: source-dist path: dist/*.tar.gz + test_sdist: + name: Check source distribution is usable + needs: [build_sdist] + runs-on: ubuntu-22.04 + steps: + - uses: actions/setup-python@v5 + name: Install Python + with: + python-version: "3.12" + + - uses: actions/download-artifact@v4 + with: + name: source-dist + + - name: Extract source distribution + run: tar xf crc32c*.tar.gz && rm crc32c*.tar.gz + + - name: Install source distribution + run: pip install ./crc32c* + + - name: Install test dependencies + run: pip install pytest + + - name: Run source distribution tests + run: cd crc32c* && python run-tests.py + merge_artifacts: needs: [build_wheels, build_sdist] runs-on: ubuntu-latest