Skip to content

Commit 22c0034

Browse files
committed
feat(ci): test on python 2.7
1 parent dbb3f13 commit 22c0034

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/tests.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,23 @@ jobs:
5151
- name: Test with pytest
5252
run: |
5353
coverage run -m pytest
54-
coverage report
54+
coverage report -m
55+
56+
pytest-python27:
57+
runs-on: ubuntu-latest
58+
container: coatldev/six:latest
59+
steps:
60+
- uses: actions/checkout@v4
61+
- name: Display Python verison
62+
run: python2 -c "import sys; print(sys.version)"
63+
- name: Install dependencies
64+
run: |
65+
python2 -m pip install --upgrade pip
66+
pip2 install -r requirements/pytest.txt
67+
- name: Test with pytest
68+
run: |
69+
coverage2 run -m pytest
70+
coverage2 report -m
5571
5672
flake8:
5773
runs-on: ubuntu-latest

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ classifiers = [
1414
'Intended Audience :: Information Technology',
1515
'Intended Audience :: Science/Research',
1616
'Programming Language :: Python',
17+
'Programming Language :: Python :: 2',
18+
'Programming Language :: Python :: 2.7',
1719
'Programming Language :: Python :: 3',
1820
'Programming Language :: Python :: 3.6',
1921
'Programming Language :: Python :: 3.7',

0 commit comments

Comments
 (0)