Skip to content
Snippets Groups Projects
Commit 7a858cec authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

add Radon to CC

parent 25346265
No related branches found
No related tags found
No related merge requests found
...@@ -8,6 +8,8 @@ plugins: ...@@ -8,6 +8,8 @@ plugins:
enabled: true enabled: true
pylint: pylint:
enabled: true enabled: true
radon:
enabled: true
exclude_paths: exclude_paths:
- tests/** - tests/**
- docs/** - docs/**
......
name: build-satella name: CI
run-name: ${{ github.actor }} run-name: ${{ github.actor }}
on: [ push ] on: [ push ]
jobs: jobs:
...@@ -44,7 +44,7 @@ jobs: ...@@ -44,7 +44,7 @@ jobs:
pip install -U pip setuptools wheel disttools packaging build pip install -U pip setuptools wheel disttools packaging build
- name: Alter Version - name: Alter Version
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
run: | run: |
echo -e '__version__ = "' > satella/__init__.py echo -e '__version__ = "' > satella/__init__.py
echo -e '${{ github.event.release.tag_name }}' >> satella/__init__.py echo -e '${{ github.event.release.tag_name }}' >> satella/__init__.py
echo '"' >> satella/__init__.py echo '"' >> satella/__init__.py
...@@ -55,10 +55,10 @@ jobs: ...@@ -55,10 +55,10 @@ jobs:
with: with:
name: builds name: builds
path: | path: |
dist dist
send-to-pypi: send-to-pypi:
runs-on: "ubuntu-20.04" runs-on: "ubuntu-20.04"
needs: ["build-project", "tests"] needs: [ "build-project", "tests" ]
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
steps: steps:
- uses: actions/setup-python@main - uses: actions/setup-python@main
...@@ -71,7 +71,7 @@ jobs: ...@@ -71,7 +71,7 @@ jobs:
- name: Download all builds artifacts - name: Download all builds artifacts
uses: actions/download-artifact@main uses: actions/download-artifact@main
with: with:
name: builds name: builds
- name: Send over packages to PyPI - name: Send over packages to PyPI
run: | run: |
echo $PYPIRC_PASSWORD_DATA > ~/.pypirc echo $PYPIRC_PASSWORD_DATA > ~/.pypirc
......
satella satella
======== ========
![example workflow](https://github.com/piotrmaslanka/satella/actions/workflows/develop.yml/badge.svg)[![Test Coverage](https://api.codeclimate.com/v1/badges/34b392b61482d98ad3f0/test_coverage)](https://codeclimate.com/github/piotrmaslanka/satella/test_coverage) ![example workflow](https://github.com/piotrmaslanka/satella/actions/workflows/ci.yml/badge.svg)[![Code Climate](https://codeclimate.com/github/piotrmaslanka/satella/badges/gpa.svg)](https://codeclimate.com/github/piotrmaslanka/satella)
[![Code Climate](https://codeclimate.com/github/piotrmaslanka/satella/badges/gpa.svg)](https://codeclimate.com/github/piotrmaslanka/satella)
[![Issue Count](https://codeclimate.com/github/piotrmaslanka/satella/badges/issue_count.svg)](https://codeclimate.com/github/piotrmaslanka/satella) [![Issue Count](https://codeclimate.com/github/piotrmaslanka/satella/badges/issue_count.svg)](https://codeclimate.com/github/piotrmaslanka/satella)
[![PyPI](https://img.shields.io/pypi/pyversions/satella.svg)](https://pypi.python.org/pypi/satella) [![PyPI](https://img.shields.io/pypi/pyversions/satella.svg)](https://pypi.python.org/pypi/satella)
[![PyPI version](https://badge.fury.io/py/satella.svg)](https://badge.fury.io/py/satella) [![PyPI version](https://badge.fury.io/py/satella.svg)](https://badge.fury.io/py/satella)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment