File tree Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Expand file tree Collapse file tree 1 file changed +14
-4
lines changed Original file line number Diff line number Diff line change 4
4
# pyocd-pemicro workflow for:
5
5
# - checking code with flake8
6
6
# - test build of sdist and wheel
7
+ # - check built sdist and wheel with twine
7
8
8
9
name : basic test
9
10
15
16
runs-on : ubuntu-latest
16
17
strategy :
17
18
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"
19
25
20
26
steps :
21
27
- uses : actions/checkout@v2
@@ -36,13 +42,13 @@ jobs:
36
42
uses : actions/cache@v2
37
43
with :
38
44
path : ${{ steps.pip-cache.outputs.dir }}
39
- key : ${{ runner.os }}-pip-${{ hashFiles('**/setup.py ') }}
45
+ key : ${{ runner.os }}-pip-${{ hashFiles('**/setup.*', '**/pyproject.toml ') }}
40
46
restore-keys : |
41
47
${{ runner.os }}-pip-
42
48
43
49
- name : Install dependencies
44
50
run : |
45
- python -m pip install --upgrade setuptools pip wheel flake8
51
+ python -m pip install --upgrade setuptools pip wheel flake8 build twine
46
52
47
53
- name : Setup flake8 annotations
48
54
# This commit is v1. Using exact commit for security.
55
61
56
62
- name : Test build
57
63
run : |
58
- python setup.py sdist bdist_wheel
64
+ python -mbuild
65
+
66
+ - name : Check packages
67
+ run : |
68
+ twine check dist/*
You can’t perform that action at this time.
0 commit comments