Skip to content

Commit 450f931

Browse files
committed
Workflow: Python 3.10 and more.
- Add Python 3.10 to test matrix. - Use python -mbuild to build packages. - Check built packages with 'twine check'.
1 parent 5e28f7d commit 450f931

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

.github/workflows/basic_test.yaml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
# pyocd-pemicro workflow for:
55
# - checking code with flake8
66
# - test build of sdist and wheel
7+
# - check built sdist and wheel with twine
78

89
name: basic test
910

@@ -15,7 +16,12 @@ jobs:
1516
runs-on: ubuntu-latest
1617
strategy:
1718
matrix:
18-
python-version: [3.6, 3.7, 3.8, 3.9]
19+
python-version:
20+
- "3.6"
21+
- "3.7"
22+
- "3.8"
23+
- "3.9"
24+
- "3.10"
1925

2026
steps:
2127
- uses: actions/checkout@v2
@@ -36,13 +42,13 @@ jobs:
3642
uses: actions/cache@v2
3743
with:
3844
path: ${{ steps.pip-cache.outputs.dir }}
39-
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
45+
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.*', '**/pyproject.toml') }}
4046
restore-keys: |
4147
${{ runner.os }}-pip-
4248
4349
- name: Install dependencies
4450
run: |
45-
python -m pip install --upgrade setuptools pip wheel flake8
51+
python -m pip install --upgrade setuptools pip wheel flake8 build twine
4652
4753
- name: Setup flake8 annotations
4854
# This commit is v1. Using exact commit for security.
@@ -55,4 +61,8 @@ jobs:
5561
5662
- name: Test build
5763
run: |
58-
python setup.py sdist bdist_wheel
64+
python -mbuild
65+
66+
- name: Check packages
67+
run: |
68+
twine check dist/*

0 commit comments

Comments
 (0)