diff --git a/.codeclimate.yml b/.codeclimate.yml index bb9560bbd529872c1bb18a5218abe5d6a01c1a7c..c579fd98302bbc230dea126b5ed41dbecb5f532a 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 1c21e599f32ae9c26b61b7d119be0d5c5fc045b8..8bc69029ede103eb464fe6eda97b84d7bb9b3a8e 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 26998ea627d1263c512f0eebc1a0b23604e0865a..7e965e8dfc2abd09b8222616a80a86375d780380 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)