Add cached diff-scan polling support to DiffScans.get (#99) #13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Package Check | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: package-check-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| package-check: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| fetch-depth: 1 | |
| persist-credentials: false | |
| - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: "3.12" | |
| - name: Install build tooling | |
| uses: ./.github/actions/setup-hatch | |
| - name: Install test and distribution tooling | |
| run: python -m pip install ".[test]" "twine>=4.0.0" | |
| - name: Run unit tests | |
| run: python -m pytest -q tests/unit | |
| - name: Build distributions | |
| run: hatch build | |
| - name: Validate distributions | |
| run: python -m twine check dist/* | |
| - name: Install and smoke-test wheel | |
| run: | | |
| python -m venv "$RUNNER_TEMP/package-check" | |
| "$RUNNER_TEMP/package-check/bin/pip" install --upgrade pip | |
| "$RUNNER_TEMP/package-check/bin/pip" install dist/*.whl | |
| "$RUNNER_TEMP/package-check/bin/python" -c "import socketdev; from socketdev.version import __version__; print('wheel smoke OK', __version__)" | |
| - name: Upload distributions | |
| uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | |
| with: | |
| name: socketdev-${{ github.sha }} | |
| path: dist/* | |
| if-no-files-found: error | |
| retention-days: 14 |