Skip to content

Commit 4e2f3f1

Browse files
committedApr 30, 2023
Adapt GitHub action
1 parent ddc86dc commit 4e2f3f1

File tree

2 files changed

+8
-14
lines changed

2 files changed

+8
-14
lines changed
 

‎.github/workflows/publish_on_pypi.yml

+7-13
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,22 @@ on:
66
- 'Release-*'
77

88
jobs:
9-
build:
9+
publish:
1010
runs-on: ubuntu-latest
11-
strategy:
12-
matrix:
13-
python: ['3.10']
1411

1512
steps:
1613
- uses: actions/checkout@v3
1714

18-
- name: Set up Python ${{ matrix.python }}
15+
- name: Set up Python
1916
uses: actions/setup-python@v4
2017
with:
21-
python-version: ${{ matrix.python }}
18+
python-version: "3.10"
2219

23-
- name: Build source tarball
24-
if: matrix.python == 3.10
25-
run: python setup.py sdist
20+
- name: Install build tool
21+
run: python -m pip install build --user
2622

27-
- name: Build wheel
28-
run: |
29-
pip install wheel
30-
python setup.py bdist_wheel
23+
- name: Build source tarball and wheel
24+
run: python -m build
3125

3226
- name: Publish distribution to PyPI
3327
uses: pypa/gh-action-pypi-publish@release/v1

‎.github/workflows/test_with_tox.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Test DBUtils using tox
33
on: [push, pull_request]
44

55
jobs:
6-
build:
6+
test:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:

0 commit comments

Comments
 (0)
Please sign in to comment.