From 7a858cec187e09fb17f60482e24338380e3b10fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl> Date: Wed, 6 Mar 2024 14:10:24 +0100 Subject: [PATCH] add Radon to CC --- .codeclimate.yml | 2 ++ .github/workflows/ci.yml | 10 +++++----- README.md | 3 +-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.codeclimate.yml b/.codeclimate.yml index bb9560bb..c579fd98 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -8,6 +8,8 @@ plugins: enabled: true pylint: enabled: true + radon: + enabled: true exclude_paths: - tests/** - docs/** diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1c21e599..8bc69029 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: build-satella +name: CI run-name: ${{ github.actor }} on: [ push ] jobs: @@ -44,7 +44,7 @@ jobs: pip install -U pip setuptools wheel disttools packaging build - name: Alter Version if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') - run: | + run: | echo -e '__version__ = "' > satella/__init__.py echo -e '${{ github.event.release.tag_name }}' >> satella/__init__.py echo '"' >> satella/__init__.py @@ -55,10 +55,10 @@ jobs: with: name: builds path: | - dist + dist send-to-pypi: runs-on: "ubuntu-20.04" - needs: ["build-project", "tests"] + needs: [ "build-project", "tests" ] if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') steps: - uses: actions/setup-python@main @@ -71,7 +71,7 @@ jobs: - name: Download all builds artifacts uses: actions/download-artifact@main with: - name: builds + name: builds - name: Send over packages to PyPI run: | echo $PYPIRC_PASSWORD_DATA > ~/.pypirc diff --git a/README.md b/README.md index 26998ea6..7e965e8d 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,6 @@ satella ======== -[](https://codeclimate.com/github/piotrmaslanka/satella/test_coverage) -[](https://codeclimate.com/github/piotrmaslanka/satella) +[](https://codeclimate.com/github/piotrmaslanka/satella) [](https://codeclimate.com/github/piotrmaslanka/satella) [](https://pypi.python.org/pypi/satella) [](https://badge.fury.io/py/satella) -- GitLab