Fixing more CI issues

This commit is contained in:
Sumner Evans
2020-09-22 11:05:21 -06:00
parent 42c807daa4
commit 51b0e3d441
10 changed files with 67 additions and 54 deletions

View File

@@ -47,7 +47,7 @@ def check_file(path: Path) -> bool:
valid = True
for path in Path("sublime").glob("**/*.py"):
for path in Path("sublime_music").glob("**/*.py"):
valid &= check_file(path)
for path in Path("tests").glob("**/*.py"):
@@ -56,7 +56,7 @@ for path in Path("tests").glob("**/*.py"):
"""
Checks that the version in the CHANGELOG is the same as the version in ``__init__.py``.
"""
with open(Path("sublime/__init__.py")) as f:
with open(Path("sublime_music/__init__.py")) as f:
for line in f:
if line.startswith("__version__"):
version = eval(line.split()[-1])

View File

@@ -3,6 +3,7 @@ export PYENV_ROOT="${HOME}/.pyenv"
export PATH="${PYENV_ROOT}/bin:$PATH"
eval "$(pyenv init -)"
apt-get install -y python3-venv
pip3 install poetry
mkdir -p ~/.config/pypoetry/