Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 18 additions & 26 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,31 +18,23 @@ jobs:
fail-fast: true

matrix:
os: [ubuntu-latest, macos-latest]
pyv: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
os: [ ubuntu-latest, macos-latest ]
pyv: [ "3.9", "3.10", "3.11", "3.12", "3.13", "3.14" ]

steps:
- uses: actions/checkout@v6

- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.pyv }}

- name: Install dependencies
run: |
python -m pip install -r requirements-dev.txt
python -m pip install -e .

- name: Test
# Leave room for faulthandler_timeout (60s) to dump stacks and for
# asyncssh's login_timeout (120s) to raise before the step is killed.
timeout-minutes: 3
run: >-
python -m pytest --cov-report=xml --cov=.
--reruns 1 --reruns-delay 2

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
files: ./coverage.xml
fail_ci_if_error: false
- uses: actions/checkout@v6

- name: Install uv
uses: astral-sh/setup-uv@v10.3.2
with:
python-version: ${{ matrix.pyv }}

- name: Test
timeout-minutes: 3
run: uv run --group test pytest --cov-report=xml --cov=. --reruns 1 --reruns-delay 2

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
files: ./coverage.xml
fail_ci_if_error: false
10 changes: 10 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ dependencies = [
"asyncssh>=2.11.0,<3",
]

[dependency-groups]
test = [

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

delete requirements-dev.txt

it now duplicates this probably

"pytest",
"pytest-asyncio",
"pytest-cov",
"pytest-rerunfailures",
"mock-ssh-server",
"importlib-metadata>=6.0.0",
]

[project.optional-dependencies]
bcrypt = ["asyncssh[bcrypt]"]
fido2 = ["asyncssh[fido2]"]
Expand Down
6 changes: 0 additions & 6 deletions requirements-dev.txt

This file was deleted.

Loading