Skip to content

Commit 8ba4639

Browse files
committed
✅ test for pypy versions up to 3.9
Also makes sure the module can be imported after installing. Also up actions/checkout and actions/setup-python versions.
1 parent ffd2808 commit 8ba4639

File tree

2 files changed

+22
-3
lines changed

2 files changed

+22
-3
lines changed

.github/workflows/tests.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,26 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python: ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10"]
10+
python: ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10", pypy-3.7, pypy-3.8, pypy-3.9]
1111

1212
steps:
13-
- uses: actions/checkout@v2
14-
- uses: actions/setup-python@v2
13+
- uses: actions/checkout@v3
14+
- uses: actions/setup-python@v4
1515
with:
1616
python-version: ${{ matrix.python }}
1717
- run: pip install .[test]
1818
- run: pytest
19+
20+
install:
21+
runs-on: ubuntu-latest
22+
strategy:
23+
matrix:
24+
python: ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10", pypy-3.7, pypy-3.8, pypy-3.9]
25+
26+
steps:
27+
- uses: actions/checkout@v3
28+
- uses: actions/setup-python@v4
29+
with:
30+
python-version: ${{ matrix.python }}
31+
- run: pip install .
32+
- run: python -c "from lru import LRU"

setup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
'Programming Language :: C',
2222
'Programming Language :: Python :: 2',
2323
'Programming Language :: Python :: 3',
24+
'Programming Language :: Python :: 3.6',
25+
'Programming Language :: Python :: 3.7',
26+
'Programming Language :: Python :: 3.8',
27+
'Programming Language :: Python :: 3.9',
28+
'Programming Language :: Python :: 3.10',
2429
'Programming Language :: Python :: Implementation :: CPython',
2530
'Topic :: Software Development :: Libraries :: Python Modules',
2631
],

0 commit comments

Comments
 (0)