Skip to content

Commit

Permalink
0.1.0 (#1)
Browse files Browse the repository at this point in the history
* first version
* readme stuff

* CI
  • Loading branch information
aviramha authored Aug 12, 2020
1 parent 9f5a184 commit 15336c9
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 1 deletion.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Deploy to PyPI

on:
push:
tags:
- '*.*.*'

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install Poetry
run: |
python -m pip install --upgrade pip
pip install poetry
- name: Setup Cache
uses: actions/cache@v2
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-pip-
restore-keys: |
${{ runner.os }}-pip-
- name: Publish
env:
PYPI_USERNAME: ${{ secrets.pypi_user }}
PYPI_PASSWORD: ${{ secrets.pypi_password }}
run: |
make publish
40 changes: 40 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Test Contextfilter

on:
push:
branches: [ develop, master ]
pull_request:
branches: [ develop, master ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: |
python -m pip install --upgrade pip
pip install poetry
- name: Setup Cache
uses: actions/cache@v2
with:
path: ~/.cache/pypoetry
key: ${{ runner.os }}-pip-
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies & Lint & Tests
run: |
make install
make lint
make test
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,8 @@ lint-check: lint-check-black lint-check-flake8 lint-check-isort lint-check-mypy

.PHONY: test
test:
@$(POETRY) run pytest --cov-report term --cov-report html --cov=contextfilter -vv
@$(POETRY) run pytest --cov-report term --cov-report html --cov=contextfilter -vv

.PHONY: publish
publish:
@$(POETRY) publish --username=$(PYPI_USERNAME) --password=$(PYPI_PASSWORD) --build
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# contextfilter

Small, helper library for logging contextual information in Python 3.7.

Expand Down

0 comments on commit 15336c9

Please sign in to comment.