Skip to content

Commit 16cc560

Browse files
committed
[.github/workflows/python-package.yml] Separate builder for 2.7 support
1 parent 96ce6b8 commit 16cc560

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

.github/workflows/python-package.yml

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,31 @@ on:
77
branches: [ master ]
88

99
jobs:
10-
build:
10+
build_27:
1111

1212
runs-on: ubuntu-latest
1313
container: coatldev/six:latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Install dependencies
18+
run: |
19+
python --version
20+
pip install --upgrade pip setuptools wheel
21+
pip install -r requirements.txt
22+
- name: Lint with flake8
23+
run: |
24+
pip install flake8
25+
flake8 . --count --select=$(printf '%s,' {A..Z}) --ignore='W503,E203' --show-source --max-complexity=13 --max-line-length=119 --statistics
26+
- name: Test with unittest
27+
run: python setup.py test
28+
29+
build:
30+
31+
runs-on: ubuntu-latest
1432
strategy:
1533
matrix:
16-
python-version: [ 2.7, 3.5, 3.6, 3.7, 3.8, 3.9, '3.10', 3.11, 3.12, 3.13 ]
34+
python-version: [ 3.7, 3.8, 3.9, '3.10', 3.11, 3.12, 3.13 ]
1735

1836
steps:
1937
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)