Skip to content

Commit

Permalink
auto wheels creation (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
eloyfelix committed Dec 4, 2022
1 parent 8bd3516 commit 8733f47
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 4 deletions.
40 changes: 37 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,56 @@ on:
branches:
- master
tags: '*'
release:
types:
- published
jobs:
build:
runs-on: ${{ matrix.os }}
runs-on: ubuntu-latest
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ['3.8', '3.9', '3.10', '3.11']
name: Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v3

- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install cbl-migrator
shell: bash -l {0}
run: pip install -e . pytest
run: pip install -e . pytest twine build

- name: Run tests
shell: bash -l {0}
run: pytest

- name: Build wheels
run: python3 -m build

- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
path: dist/*

upload_all:
name: Upload if release
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'release' && github.event.action == 'published'

steps:
- uses: actions/setup-python@v4
with:
python-version: "3.x"

- uses: actions/download-artifact@v3
with:
name: artifact
path: dist

- uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.pypi_password }}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
if __name__ == "__main__":
setup(
name="cbl_migrator",
version="0.3.3",
version="0.3.4",
author="Eloy Félix",
author_email="[email protected]",
description="Migrates Oracle dbs to PostgreSQL, MySQL and SQLite",
Expand Down

0 comments on commit 8733f47

Please sign in to comment.