Skip to content

Commit 0250849

Browse files
committed
[.github/workflows/python-package.yml] Attempt at tester fix for 3 and 2
1 parent 95fa2db commit 0250849

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/python-package.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ jobs:
1717
- uses: actions/checkout@v4
1818
- name: Install dependencies
1919
run: |
20-
python --version
21-
pip install --upgrade pip setuptools wheel
22-
pip install -r requirements.txt
20+
python2 --version
21+
pip2 install --upgrade pip setuptools wheel
22+
pip2 install -r requirements.txt
2323
- name: Lint with flake8
2424
run: |
25-
pip install flake8
25+
pip2 install flake8
2626
flake8 . --count --select=$(printf '%s,' {A..Z}) --ignore='W503,E203' --show-source --max-complexity=13 --max-line-length=119 --statistics
2727
- name: Test with unittest
28-
run: python -m unittest discover -s nginxctl/tests
28+
run: python2 setup.py test
2929

3030
build:
3131

@@ -50,4 +50,4 @@ jobs:
5050
flake8 . --count --select=$(printf '%s,' {A..Z}) --ignore='W503,E203' --show-source --max-complexity=13 --max-line-length=119 --statistics
5151
- name: Test with unittest
5252
run: |
53-
python setup.py test
53+
python -m unittest discover -s nginxctl/tests

0 commit comments

Comments
 (0)