Skip to content
Merged
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
55 changes: 30 additions & 25 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,33 @@
name: Publish library
name: Publish Library
on:
release:
types: [published]
release:
types: [published]

jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Build
uses: abatilo/actions-poetry@v1.8.0
with:
python_version: 3.7.0
poetry_version: 1.0
args: build
- name: Publish a Python distribution to TestPyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.test_pypi_token }}
repository_url: https://test.pypi.org/legacy/
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_token }}
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Install Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.2.2
- name: Build Package
run: |
poetry install
poetry build
- name: Publish a Python distribution to TestPyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.test_pypi_token }}
repository_url: https://test.pypi.org/legacy/
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_token }}
41 changes: 18 additions & 23 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,21 @@ name: Run Linter and Tests
on: [pull_request]

jobs:
build:
name: pytest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Install
uses: abatilo/actions-poetry@v1.8.0
with:
python_version: 3.7
poetry_version: 1.0
args: install
- name: Run Linter
uses: abatilo/actions-poetry@v1.8.0
with:
python_version: 3.7
poetry_version: 1.0
args: run flake8
- name: Run pytest
uses: abatilo/actions-poetry@v1.8.0
with:
python_version: 3.7
poetry_version: 1.0
args: run python -m pytest --cov=src --cov-branch
build:
name: Run Linting and Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: 3.7
- name: Install Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: 1.2.2
- name: Install Dependencies
run: poetry install
- name: Run Linter
run: poetry run flake8
- name: Run Tests
run: poetry run python -m pytest --cov=src --cov-branch
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "xendit-python"
version = "0.1.10"
version = "0.2.0"
description = "Xendit REST API Client for Python - Card, Virtual Account, Invoice, Disbursement, Recurring Payments, Payout, EWallet, Balance, Retail Outlets, Payments API, Services https://xendit.github.io/apireference/"
authors = ["Maahir Ur Rahman <maahir@xendit.co>"]
license = "MIT"
Expand Down