Skip to content

Commit 9d79107

Browse files
committed
added poetry deployment
1 parent b4ca666 commit 9d79107

File tree

4 files changed

+26
-2
lines changed

4 files changed

+26
-2
lines changed

.github/workflows/poetry-publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Upload OPA-python-client
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: actions/setup-python@v1
13+
with:
14+
python-version: '3.8'
15+
architecture: x64
16+
- name: Install dependencies
17+
run: |
18+
python -m pip install --upgrade pip
19+
pip install poetry
20+
- name: Build and publish
21+
run: |
22+
poetry version $(git describe --tags --abbrev=0)
23+
poetry build
24+
poetry publish --username ${{ secrets.PYPI_USERNAME }} --password ${{ secrets.PYPI_PASSWORD }}

.github/workflows/test-package.yml

Whitespace-only changes.

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ lint:
1111

1212
format_code:
1313
isort .
14-
blue .
14+
blue .

opa_client/test/test_opa.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
from unittest import TestCase
88

9-
from opa_client.opa import OpaClient
109
from opa_client.errors import DeleteDataError, DeletePolicyError
10+
from opa_client.opa import OpaClient
1111

1212

1313
class TestClient(TestCase):

0 commit comments

Comments
 (0)