forked from pahaz/sshtunnel
-
Notifications
You must be signed in to change notification settings - Fork 0
chore: Update the fork to support paramiko v3 to v5 #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
6f87e26
chore: Update the fork to support paramiko v3 to v5
m1so aa5626f
chore: Clean up warnings in tests
m1so 1fb7ebc
chore: Update the description
m1so 87e5753
chore: Clean up tests
m1so da5b738
chore: Pin Github actions and OpenSSH server
m1so bbe08e7
chore: Split release into two stages
m1so ebc703f
test: Publishing to PyPI
m1so 969085b
chore: Clean up failures from CI
m1so 087f4bc
fix: Ensure dynamic versioning generates PEP 440 compliant version
m1so f894dcf
fix: E2E tests in CI
m1so dcfe5be
fix: Reformat the codebase with ruff
m1so 2bca6cb
chore: Incorporate PR review suggestions
m1so cba15ab
chore: Remove test PyPI job
m1so eaf0a26
chore: Explicitly deny default GHA permissions
m1so 75d1e7f
fix: E2E permissions in CI
m1so e2ae7bd
chore: Incorporate PR review suggestions
m1so b985e51
fix: E2E tests in CI by keeping host-side copy of the keys
m1so 6f9bc4b
chore: Incorporate PR review suggestions
m1so ca0ac09
chore: Incorporate PR review suggestions
m1so File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,106 @@ | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main, master] | ||
| pull_request: | ||
| branches: [main, master] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}${{ github.ref == 'refs/heads/master' && format('-{0}', github.sha) || '' }} | ||
| cancel-in-progress: ${{ github.ref != 'refs/heads/master' && github.ref != 'refs/heads/main' }} | ||
|
|
||
| jobs: | ||
| matrix: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 5 | ||
| outputs: | ||
| python-versions: ${{ steps.parse.outputs.python-versions }} | ||
| paramiko-versions: ${{ steps.parse.outputs.paramiko-versions }} | ||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| persist-credentials: false | ||
| sparse-checkout: noxfile.py | ||
|
|
||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 | ||
|
|
||
| - id: parse | ||
| name: Extract matrix from noxfile.py | ||
| run: | | ||
| sessions=$(uvx --from 'nox[uv]' nox --list --json 2>/dev/null) | ||
| echo "python-versions=$(echo "$sessions" | jq -c '[.[] | select(.name == "tests") | .python] | unique')" >> "$GITHUB_OUTPUT" | ||
| echo "paramiko-versions=$(echo "$sessions" | jq -c '[.[] | select(.name == "tests") | .call_spec.paramiko] | unique')" >> "$GITHUB_OUTPUT" | ||
|
|
||
| test: | ||
| needs: matrix | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 20 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| python-version: ${{ fromJSON(needs.matrix.outputs.python-versions) }} | ||
| paramiko-version: ${{ fromJSON(needs.matrix.outputs.paramiko-versions) }} | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 | ||
| with: | ||
| enable-cache: true | ||
|
|
||
| - name: Set up Python ${{ matrix.python-version }} | ||
| run: uv python install ${{ matrix.python-version }} | ||
|
|
||
| - name: Run tests (paramiko ${{ matrix.paramiko-version }}) | ||
| run: > | ||
| uvx --from 'nox[uv]' nox | ||
| -s "tests-${{ matrix.python-version }}(paramiko='${{ matrix.paramiko-version }}')" | ||
|
|
||
| e2e: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 30 | ||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 | ||
| with: | ||
| enable-cache: true | ||
|
|
||
| - name: Set up Python | ||
| run: uv python install 3.13 | ||
|
|
||
| - name: Run e2e tests | ||
| run: uvx --from 'nox[uv]' nox -s e2e | ||
|
|
||
| lint: | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 10 | ||
| steps: | ||
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: Install uv | ||
| uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 | ||
| with: | ||
| enable-cache: true | ||
|
|
||
| - name: Set up Python | ||
| run: uv python install 3.12 | ||
|
|
||
| - name: Run ruff check | ||
| run: uvx ruff check . | ||
|
|
||
| - name: Run ruff format check | ||
| run: uvx ruff format --check . | ||
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.