Skip to content

Commit

Permalink
Adapt GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito committed Apr 30, 2023
1 parent ddc86dc commit 4e2f3f1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 14 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/publish_on_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,28 +6,22 @@ on:
- 'Release-*'

jobs:
build:
publish:
runs-on: ubuntu-latest
strategy:
matrix:
python: ['3.10']

steps:
- uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python }}
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
python-version: "3.10"

- name: Build source tarball
if: matrix.python == 3.10
run: python setup.py sdist
- name: Install build tool
run: python -m pip install build --user

- name: Build wheel
run: |
pip install wheel
python setup.py bdist_wheel
- name: Build source tarball and wheel
run: python -m build

- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_with_tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Test DBUtils using tox
on: [push, pull_request]

jobs:
build:
test:
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down

0 comments on commit 4e2f3f1

Please sign in to comment.