Skip to content

Commit 98a2b4d

Browse files
committed
Merge branch 'feature/setup-tox' into feature/l33t-exploit
2 parents f54add5 + 9750ead commit 98a2b4d

File tree

4 files changed

+35
-23
lines changed

4 files changed

+35
-23
lines changed

.github/workflows/build.yml

Lines changed: 19 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,25 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
python-version: [2.7, 3.6, 3.7, 3.8, 3.9]
10+
python-version:
11+
["3.8.*", "3.9.*", "3.10.*", "3.11.*", "3.12.*", "3.13.*"]
1112
steps:
12-
- uses: actions/checkout@master
13-
- name: set up Python ${{ matrix.python-version }}
14-
uses: actions/setup-python@v2
15-
with:
16-
python-version: ${{ matrix.python-version }}
17-
- name: Install dependencies
18-
run: |
19-
python -m pip install --upgrade pip
20-
pip install -U setuptools
21-
pip install -r requirements.txt
22-
pip install .
23-
- name: Run mypy
24-
if: "matrix.python-version != '2.7' && matrix.python-version != 'pypy2'"
25-
run: |
13+
- uses: actions/checkout@master
14+
- name: set up Python ${{ matrix.python-version }}
15+
uses: actions/setup-python@v5
16+
with:
17+
python-version: ${{ matrix.python-version }}
18+
- name: Install dependencies
19+
run: |
20+
python -m pip install --upgrade pip
21+
pip install -U setuptools
22+
pip install -r requirements.txt
23+
pip install .
24+
pip install tox
25+
- name: Run mypy
26+
run: |
2627
pip install -U mypy
2728
mypy -p zxcvbn --ignore-missing-imports
28-
- name: Run tests
29-
run: |
30-
pytest -v
31-
- name: Test Compatibility
32-
run: |
33-
python tests/test_compatibility.py tests/password_expected_value.json
29+
- name: Run tests
30+
run: |
31+
tox

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ time.
1616

1717
Features
1818
--------
19-
- **Tested in Python versions 2.7, 3.6-3.9**
19+
- **Tested in Python versions 3.8-3.13**
2020
- Accepts user data to be added to the dictionaries that are tested against (name, birthdate, etc)
2121
- Gives a score to the password, from 0 (terrible) to 4 (great)
2222
- Provides feedback on the password and ways to improve it

requirements.txt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
pytest==3.5.0
1+
# For older Python versions < 3.6 install Pytest 3.5.0
2+
pytest==3.5.0; python_version < "3.6"
3+
4+
# For Python 3.6+, install a more modern Pytest:
5+
pytest==7.4.2; python_version >= "3.6"

tox.ini

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
[tox]
2+
envlist = py38, py39, py310, py311, py312, py313
3+
isolated_build = True
4+
5+
[testenv]
6+
deps =
7+
pytest
8+
commands =
9+
pytest
10+
python tests/test_compatibility.py tests/password_expected_value.json

0 commit comments

Comments
 (0)