Skip to content

Commit 8cfc5c3

Browse files
committed
Add pytest for Fabric2.x
Signed-off-by: Cristian Le <[email protected]>
1 parent 649d46d commit 8cfc5c3

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

.github/workflows/tests.yaml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,38 @@ 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: ${{ matrix.os }}
22+
needs: [ pre-commit ]
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
os: [ ubuntu-latest ]
27+
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]
28+
fabric-version: [ "==2.2","<3.0" ]
29+
include:
30+
- os: ubuntu-20.04
31+
python-version: "3.6"
32+
steps:
33+
- uses: actions/checkout@v3
34+
- name: Set up Python ${{ matrix.python-version }}
35+
uses: actions/setup-python@v4
36+
with:
37+
python-version: ${{ matrix.python-version }}
38+
- name: Install Fabric 2.x and patchwork
39+
run: pip install "fabric${{ matrix.fabric-version }}" .[test]
40+
- name: Test with pytest
41+
run: pytest
42+
1943
pytest:
2044
name: Run pytests
2145
runs-on: ${{ matrix.os }}
2246
needs: [ pre-commit ]
2347
strategy:
2448
fail-fast: false
2549
matrix:
26-
os: [ubuntu-latest]
50+
os: [ ubuntu-latest ]
2751
python-version: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]
2852
include:
2953
- os: ubuntu-20.04

0 commit comments

Comments
 (0)