diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml new file mode 100644 index 0000000..bc0d964 --- /dev/null +++ b/.github/workflows/ci-test.yml @@ -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/ \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index cddbae5..fcbf799 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 ------------------ diff --git a/pyproject.toml b/pyproject.toml index ae6e1a5..8fc8f4d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -6,4 +6,4 @@ build-backend = "setuptools.build_meta" [project] name = "transfa-python-sdk" -version = "0.1.0" \ No newline at end of file +version = "0.1.2" \ No newline at end of file diff --git a/setup.cfg b/setup.cfg index 2f093f9..02597b7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 0.1.0 +current_version = 0.1.2 commit = True tag = True diff --git a/transfa/version.py b/transfa/version.py index 1cf6267..5411c9a 100644 --- a/transfa/version.py +++ b/transfa/version.py @@ -1 +1 @@ -VERSION = "0.1.0" +VERSION = "0.1.2"