Skip to content

Commit

Permalink
Bump cmudict/data from bfb3b05 to 4c6a365 (#20)
Browse files Browse the repository at this point in the history
* Bump cmudict/data from `bfb3b05` to `4c6a365`

Bumps [cmudict/data](https://github.com/cmusphinx/cmudict) from `bfb3b05` to `4c6a365`.
- [Release notes](https://github.com/cmusphinx/cmudict/releases)
- [Commits](cmusphinx/cmudict@bfb3b05...4c6a365)

Signed-off-by: dependabot[bot] <support@github.com>

* +3.9, -3.5

* updated expected counts

* marked as 1.0 release

* setup-python@v2

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: David L. Day <dday376@gmail.com>
  • Loading branch information
dependabot[bot] and davidlday authored Aug 8, 2021
1 parent 716fe13 commit cb47020
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 52 deletions.
37 changes: 18 additions & 19 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,24 @@ on:

jobs:
deploy:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.x"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
51 changes: 25 additions & 26 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,34 +7,33 @@ on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
python-version: [2.7, 3.6, 3.7, 3.8, 3.9]

steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- name: Install module
run: |
pip install -e .
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pip install pytest
pytest
- uses: actions/checkout@v2
with:
submodules: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- name: Install module
run: |
pip install -e .
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pip install pytest
pytest
2 changes: 1 addition & 1 deletion cmudict/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.5
1.0.0
2 changes: 1 addition & 1 deletion cmudict/data
Submodule data updated 1 files
+1 −0 cmudict.dict
2 changes: 1 addition & 1 deletion tests/test_cmudict.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


def test_dict_string():
EXPECTED_LENGTH = 3618063
EXPECTED_LENGTH = 3618090
dict_string = cmudict.dict_string()
LENGTH = len(dict_string)
if (EXPECTED_LENGTH != LENGTH):
Expand Down
8 changes: 4 additions & 4 deletions tests/test_compatability.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@


def test_dict():
EXPECTED_SIZE = 126045
EXPECTED_SIZE = 126046
d = cmudict.dict()
SIZE = len(d)
if (EXPECTED_SIZE != SIZE):
Expand All @@ -13,7 +13,7 @@ def test_dict():


def test_entries():
EXPECTED = 135154
EXPECTED = 135155
e = cmudict.entries()
COUNT = len(e)
if (COUNT != EXPECTED):
Expand All @@ -22,7 +22,7 @@ def test_entries():


def test_raw():
EXPECTED = 3618063
EXPECTED = 3618090
r = cmudict.raw()
COUNT = len(r)
if (COUNT != EXPECTED):
Expand All @@ -31,7 +31,7 @@ def test_raw():


def test_words():
EXPECTED = 135154
EXPECTED = 135155
w = cmudict.words()
COUNT = len(w)
if (COUNT != EXPECTED):
Expand Down

0 comments on commit cb47020

Please sign in to comment.