From d272910107bb8887f8e7729b7d254a233c04fa43 Mon Sep 17 00:00:00 2001 From: pictuga Date: Sat, 24 Jun 2023 00:59:00 +0200 Subject: [PATCH] actions: fix python setup --- .github/workflows/default.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/default.yml b/.github/workflows/default.yml index 009dccf..71ec264 100644 --- a/.github/workflows/default.yml +++ b/.github/workflows/default.yml @@ -11,11 +11,8 @@ jobs: - uses: actions/checkout@v3 with: fetch-depth: 0 - - uses: https://github.com/actions/setup-python@v2 - with: - python-version: 3.x - - run: pip install --upgrade pip - - run: pip install .[full] .[dev] + - run: apt-get -y update && apt-get -y install python3-pip + - run: pip3 install .[full] .[dev] - run: isort --check-only --diff . - run: pylint morss --rcfile=.pylintrc --disable=C,R,W --fail-under=8 - run: pytest --cov=morss tests @@ -28,7 +25,8 @@ jobs: uses: actions/checkout@v3 with: fetch-depth: 0 - - run: python3 -m pip install --upgrade build && python3 -m build + - run: apt-get -y update && apt-get -y install python3-pip python3-build + - run: python3 -m build - name: Publish package uses: https://github.com/pypa/gh-action-pypi-publish@release/v1 with: