Skip to content

Commit

Permalink
Use poetry, cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
datashaman committed Mar 2, 2023
1 parent b5106c5 commit 06d0fa5
Show file tree
Hide file tree
Showing 21 changed files with 2,337 additions and 215 deletions.
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

0 comments on commit 06d0fa5

Please sign in to comment.