Skip to content

Commit 68c5773

Browse files
committed
lint workflow yamls
1 parent bc8bd8a commit 68c5773

9 files changed

Lines changed: 69 additions & 65 deletions

File tree

.github/workflows/build.yml

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,29 @@ jobs:
1919

2020
runs-on: ${{ matrix.os }}
2121
steps:
22-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v2
2323

24-
- name: Set up Python ${{ matrix.python-version }}
25-
uses: actions/setup-python@v2
26-
with:
27-
python-version: ${{ matrix.python-version }}
28-
architecture: x64
24+
- name: Set up Python ${{ matrix.python-version }}
25+
uses: actions/setup-python@v2
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
architecture: x64
2929

30-
# block below based on:
31-
# https://medium.com/ai2-blog/python-caching-in-github-actions-e9452698e98d
32-
- uses: actions/cache@v2
33-
with:
34-
path: ${{ env.pythonLocation }}
35-
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('pip-freeze.txt') }}
30+
# block below based on:
31+
# https://medium.com/ai2-blog/python-caching-in-github-actions-e9452698e98d
32+
- uses: actions/cache@v2
33+
with:
34+
path: ${{ env.pythonLocation }}
35+
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('pip-freeze.txt') }}
3636

37-
- name: Install dependencies
38-
run: |
39-
pip install --upgrade --upgrade-strategy eager setuptools wheel
40-
pip install --upgrade --upgrade-strategy eager -r requirements.txt
41-
pip freeze > pip-freeze.txt
37+
- name: Install dependencies
38+
run: |
39+
pip install --upgrade --upgrade-strategy eager setuptools wheel
40+
pip install --upgrade --upgrade-strategy eager -r requirements.txt
41+
pip freeze > pip-freeze.txt
4242
43-
- name: Test with pytest
44-
run: |
45-
python setup.py build_ext --inplace
46-
pip install -e .
47-
python -m pytest
43+
- name: Test with pytest
44+
run: |
45+
python setup.py build_ext --inplace
46+
pip install -e .
47+
python -m pytest

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: publish
33
on:
44
workflow_dispatch:
55
inputs:
6-
repository:
6+
repository:
77
description: 'The repository to upload the package to'
88
required: true
99
default: 'testpypi'
@@ -38,7 +38,7 @@ jobs:
3838
CIBW_ARCHS_MACOS: 'auto arm64'
3939
CIBW_TEST_REQUIRES: pytest
4040
CIBW_TEST_COMMAND: 'pytest -s {project}/tests'
41-
CIBW_TEST_SKIP: '*-macosx_arm64' # Until the day Apple silicon instances are available on GitHub Actions
41+
CIBW_TEST_SKIP: '*-macosx_arm64' # Until the day Apple silicon instances are available on GitHub Actions
4242
- uses: actions/upload-artifact@v2
4343
with:
4444
path: ./wheelhouse/*.whl

pip-freeze.txt

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
11
attrs==21.4.0
22
backcall==0.2.0
3-
Cython==0.29.26
4-
decorator==5.1.0
3+
Cython==0.29.27
4+
decorator==5.1.1
5+
importlib-metadata==2.1.3
56
iniconfig==1.1.1
67
ipdb==0.13.9
7-
ipython==7.31.0
8-
jedi==0.18.1
9-
matplotlib-inline==0.1.3
10-
numpy==1.22.0
11-
packaging==21.3
12-
parso==0.8.3
8+
ipython==7.9.0
9+
ipython-genutils==0.2.0
10+
jedi==0.17.2
11+
numpy==1.18.5
12+
packaging==20.9
13+
parso==0.7.1
14+
pathlib2==2.3.6
1315
pexpect==4.8.0
1416
pickleshare==0.7.5
15-
pluggy==1.0.0
16-
prompt-toolkit==3.0.24
17+
pluggy==0.13.1
18+
prompt-toolkit==2.0.10
1719
ptyprocess==0.7.0
1820
py==1.11.0
1921
py-cpuinfo==8.0.0
2022
Pygments==2.11.2
21-
pyparsing==3.0.6
22-
pytest==6.2.5
23+
pyparsing==2.4.7
24+
pytest==6.1.2
25+
six==1.16.0
2326
toml==0.10.2
24-
traitlets==5.1.1
27+
traitlets==4.3.3
2528
wcwidth==0.2.5
29+
zipp==1.2.0

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ def get_system_bits():
127127
)
128128

129129

130-
VERSION = "0.4.0.post0"
130+
VERSION = "0.4.0.post1"
131131
URL = "https://github.com/escherba/python-cityhash"
132132

133133

src/cityhash.cpp

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/cityhash.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Python wrapper for CityHash
1010

1111
__author__ = "Eugene Scherba"
1212
__email__ = "escherba+cityhash@gmail.com"
13-
__version__ = '0.4.0.post0'
13+
__version__ = '0.4.0.post1'
1414
__all__ = [
1515
"CityHash32",
1616
"CityHash64",

src/cityhashcrc.cpp

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/farmhash.cpp

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/farmhash.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Python wrapper for FarmHash
1010

1111
__author__ = "Eugene Scherba"
1212
__email__ = "escherba+cityhash@gmail.com"
13-
__version__ = '0.4.0.post0'
13+
__version__ = '0.4.0.post1'
1414
__all__ = [
1515
"FarmHash32",
1616
"FarmHash32WithSeed",

0 commit comments

Comments
 (0)