From 6de44a43a310eec4f39dd18aaae0454cbf752cd2 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sun, 21 Jan 2024 23:17:51 +0000 Subject: [PATCH] Fix github workflows --- .github/workflows/lint.yaml | 2 +- .github/workflows/release.yaml | 18 ++++++++--------- .github/workflows/test.yaml | 8 +++++--- requirements.txt | 35 ++++++++++++++++++++++++++++++++++ 4 files changed, 49 insertions(+), 14 deletions(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index ccca905..40ea222 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -1,4 +1,4 @@ -name: lint-test +name: lint on: [push, pull_request] diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 51a07b1..adcb467 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -16,20 +16,18 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - - name: Test with pytest + - name: Install dependencies run: | - pip install pytest - pytest cache + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Test with pytest + run: pytest cache - name: Code quality with flake8 - run: | - pip install flake8 - flake8 cache --exclude gen + run: flake8 cache --exclude gen - name: Build package - run: | - pip install build - python3 -m build + run: python3 -m build - name: Upload package to PyPI - uses: pypa/gh-action-pypi-publish@27.0.3 + uses: pypa/gh-action-pypi-publish@v1.8.11 with: user: __token__ password: ${{ secrets.PYPI_TOKEN }} diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 304bc4e..eaddf48 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -16,7 +16,9 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} - - name: Test with pytest + - name: Install dependencies run: | - pip install pytest - pytest cache \ No newline at end of file + python -m pip install --upgrade pip + pip install -r requirements.txt + - name: Test with pytest + run: pytest cache \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index e1aede7..207ac2e 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,13 +1,48 @@ +astroid==3.0.2 +build==1.0.3 +certifi==2023.11.17 +charset-normalizer==3.3.2 click==8.1.7 +dill==0.3.7 +distlib==0.3.8 +docutils==0.20.1 exceptiongroup==1.2.0 +filelock==3.13.1 flake8==7.0.0 +idna==3.6 +importlib-metadata==7.0.1 iniconfig==2.0.0 +isort==5.13.2 +jaraco.classes==3.3.0 +keyring==24.3.0 +markdown-it-py==3.0.0 mccabe==0.7.0 +mdurl==0.1.2 +more-itertools==10.2.0 +mypy==1.8.0 +mypy-extensions==1.0.0 +nh3==0.2.15 packaging==23.2 +pkginfo==1.9.6 +platformdirs==4.1.0 pluggy==1.3.0 pycodestyle==2.11.1 pyflakes==3.2.0 +Pygments==2.17.2 +pylint==3.0.3 +pyproject_hooks==1.0.0 pytest==7.4.4 +readme-renderer==42.0 +requests==2.31.0 +requests-toolbelt==1.0.0 +rfc3986==2.0.0 +rich==13.7.0 six==1.16.0 thrift==0.16.0 tomli==2.0.1 +tomlkit==0.12.3 +twine==4.0.2 +typing_extensions==4.9.0 +urllib3==2.1.0 +virtualenv==20.25.0 +zipp==3.17.0