Skip to content

Commit 2439df4

Browse files
authored
Merge pull request #342 from chezou/fix-package-build
2 parents ca824f7 + 504dfb8 commit 2439df4

File tree

2 files changed

+15
-14
lines changed

2 files changed

+15
-14
lines changed

.github/workflows/pythonpublish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,17 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v3
1212
- name: Set up Python
13-
uses: actions/setup-python@v3
13+
uses: actions/setup-python@v4
1414
with:
1515
python-version: '3.x'
1616
- name: Install dependencies
1717
run: |
1818
python -m pip install --upgrade pip
19-
pip install setuptools wheel twine
19+
pip install build twine
2020
- name: Build and publish
2121
env:
2222
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
2323
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
2424
run: |
25-
python setup.py sdist bdist_wheel
25+
python -m build
2626
twine upload dist/*

.github/workflows/pythontest.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: Python testing
22

3-
on: [push, pull_request]
3+
on: [push]
44

55
jobs:
66
build:
@@ -10,24 +10,25 @@ jobs:
1010
max-parallel: 4
1111
matrix:
1212
os: [ubuntu-latest, windows-latest]
13-
python-version: ['3.8', '3.9', '3.10', '3.11']
1413

1514
steps:
16-
- uses: actions/checkout@v2
17-
- uses: actions/setup-java@v2
15+
- uses: actions/checkout@v3
16+
- uses: actions/setup-java@v3
1817
with:
19-
java-version: '12'
18+
java-version: '17'
2019
java-package: jdk
2120
distribution: adopt
22-
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v2
21+
- name: Set up Python
22+
uses: actions/setup-python@v4
2423
with:
25-
python-version: ${{ matrix.python-version }}
26-
- name: Install dependencies
24+
python-version: |
25+
3.8
26+
3.9
27+
3.10
28+
3.11
29+
- name: Install dependencies and test
2730
run: |
2831
python -m pip install --upgrade pip
2932
pip install nox
3033
pip install .
31-
- name: Lint and test with nox
32-
run: |
3334
nox

0 commit comments

Comments
 (0)