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
66 changes: 66 additions & 0 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: CI for package

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
test:
name: Test Transfa API client
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
[
"3.8",
"3.9",
"3.10",
]

steps:
- uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Tests
run: |
pytest
build-n-publish:
name: Build and publish Python 🐍 distributions 📦 to PyPI and TestPyPI
needs: [test]
if: ${{ github.event_name == 'push' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install pypa/build
run: >-
python -m
pip install
build
--user
- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
- name: Publish distribution 📦 to Test PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,18 @@ Changelog
[Unreleased]
------------

[v0.1.2] - 2022-09-16
------------------
- fix deploy issues

[v0.1.1] - 2022-09-16
------------------
- add github actions for deploy on testpipy

[v0.1.0] - 2022-09-16
------------------
- Add payments resources
- Add tests for payment resources

[v0.0.1] - 2022-09-16
------------------
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ build-backend = "setuptools.build_meta"

[project]
name = "transfa-python-sdk"
version = "0.1.0"
version = "0.1.2"
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 0.1.0
current_version = 0.1.2
commit = True
tag = True

Expand Down
2 changes: 1 addition & 1 deletion transfa/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = "0.1.0"
VERSION = "0.1.2"