Skip to content

Commit a252ad3

Browse files
committed
Add pytest for Fabric2.x
Signed-off-by: Cristian Le <[email protected]>
1 parent 38db2d2 commit a252ad3

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/tests.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,26 @@ jobs:
1616
- uses: actions/setup-python@v4
1717
- uses: pre-commit/[email protected]
1818

19+
pytest-fabric2:
20+
name: Test for Fabric 2.0 compatibility
21+
runs-on: ubuntu-latest
22+
needs: [ pre-commit ]
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]
27+
fabric-version: [ "==2.2","<3.0" ]
28+
steps:
29+
- uses: actions/checkout@v3
30+
- name: Set up Python ${{ matrix.python-version }}
31+
uses: actions/setup-python@v4
32+
with:
33+
python-version: ${{ matrix.python-version }}
34+
- name: Install Fabric ${{ matrix.fabric-version }} and patchwork
35+
run: pip install "fabric${{ matrix.fabric-version }}" .[test]
36+
- name: Test with pytest
37+
run: pytest
38+
1939
pytest:
2040
name: Run pytests
2141
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)