Skip to content

Use poetry, cleanup #49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions .codeclimate.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# EditorConfig is awesome: http://EditorConfig.org
root = true

[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true

[Makefile]
indent_style = tab

[*.md]
trim_trailing_whitespace = false

[{*.json,Makefile,*.sh,*.tf,*.yml}]
indent_size = 2
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* text=auto eol=lf whitespace=tab-in-indent,blank-at-eol,tabwidth=4
Makefile text whitespace=-tab-in-indent,blank-at-eol,tabwidth=2
44 changes: 44 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
---
name: Build Pipeline

on:
pull_request:
branches:
- main
push:
tags:
- v*

jobs:
build:
name: Build Pipeline
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup binaries. Poetry, Twine.
run: make setup-binaries

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
cache: poetry

- name: Install dependencies
run: make install

- name: Lint code
run: make lint

- name: Run tests
run: make test

- name: Build package
run: make build

- name: Publish package to PyPI
if: startsWith(github.ref, 'refs/tags')
run: |
poetry config pypi-token.pypi "${{ secrets.PYPI_API_TOKEN }}"
make publish
Loading