Skip to content

Commit 0c82d2c

Browse files
authored
update github actions (#1409)
1 parent b587878 commit 0c82d2c

File tree

3 files changed

+36
-18
lines changed

3 files changed

+36
-18
lines changed

.github/workflows/build.yml

Lines changed: 32 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,21 @@ jobs:
1313
matrix:
1414
os: [ubuntu-latest, macos-latest, windows-latest]
1515
experimental: [false]
16-
python-version: ["3.7", "3.8", "3.9", "3.10", "pypy-3.7", "pypy-3.8"]
17-
include:
18-
# Only test on a single configuration while there are just pre-releases
19-
- os: ubuntu-latest
20-
experimental: true
21-
python-version: "3.11.0-alpha - 3.11.0"
16+
python-version: [
17+
"3.7",
18+
"3.8",
19+
"3.9",
20+
"3.10",
21+
"3.11.0-alpha - 3.11.0",
22+
"pypy-3.7",
23+
"pypy-3.8",
24+
"pypy-3.9",
25+
]
2226
fail-fast: false
2327
steps:
24-
- uses: actions/checkout@v2
28+
- uses: actions/checkout@v3
2529
- name: Set up Python ${{ matrix.python-version }}
26-
uses: actions/setup-python@v3
30+
uses: actions/setup-python@v4
2731
with:
2832
python-version: ${{ matrix.python-version }}
2933
- name: Install dependencies
@@ -34,16 +38,16 @@ jobs:
3438
run: |
3539
tox -e gh
3640
- name: Upload coverage to Codecov
37-
uses: codecov/codecov-action@v2
41+
uses: codecov/codecov-action@v3
3842
with:
3943
fail_ci_if_error: true
4044

4145
static-code-analysis:
4246
runs-on: ubuntu-latest
4347
steps:
44-
- uses: actions/checkout@v2
48+
- uses: actions/checkout@v3
4549
- name: Set up Python
46-
uses: actions/setup-python@v3
50+
uses: actions/setup-python@v4
4751
with:
4852
python-version: "3.10"
4953
- name: Install dependencies
@@ -75,9 +79,9 @@ jobs:
7579
format:
7680
runs-on: ubuntu-latest
7781
steps:
78-
- uses: actions/checkout@v2
82+
- uses: actions/checkout@v3
7983
- name: Set up Python
80-
uses: actions/setup-python@v3
84+
uses: actions/setup-python@v4
8185
with:
8286
python-version: "3.10"
8387
- name: Install dependencies
@@ -91,9 +95,9 @@ jobs:
9195
docs:
9296
runs-on: ubuntu-latest
9397
steps:
94-
- uses: actions/checkout@v2
98+
- uses: actions/checkout@v3
9599
- name: Set up Python
96-
uses: actions/setup-python@v3
100+
uses: actions/setup-python@v4
97101
with:
98102
python-version: "3.10"
99103
- name: Install dependencies
@@ -109,3 +113,16 @@ jobs:
109113
name: sphinx-out
110114
path: ./build/
111115
retention-days: 5
116+
117+
build:
118+
runs-on: ubuntu-latest
119+
steps:
120+
- uses: actions/checkout@v3
121+
- name: Set up Python
122+
uses: actions/setup-python@v4
123+
with:
124+
python-version: "3.10"
125+
- name: Build wheel and sdist
126+
run: pipx run build
127+
- name: Check build artifacts
128+
run: pipx run twine check --strict dist/*

.github/workflows/format-code.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v3
1313
- name: Set up Python
14-
uses: actions/setup-python@v2
14+
uses: actions/setup-python@v4
1515
with:
1616
python-version: "3.10"
1717
- name: Install dependencies
@@ -22,7 +22,7 @@ jobs:
2222
run: |
2323
black --verbose .
2424
- name: Commit Formated Code
25-
uses: EndBug/add-and-commit@v7
25+
uses: EndBug/add-and-commit@v9
2626
with:
2727
message: "Format code with black"
2828
# Ref https://git-scm.com/docs/git-add#_examples

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
url="https://github.com/hardbyte/python-can",
4545
description="Controller Area Network interface module for Python",
4646
long_description=long_description,
47+
long_description_content_type="text/x-rst",
4748
classifiers=[
4849
# a list of all available ones: https://pypi.org/classifiers/
4950
"Programming Language :: Python",

0 commit comments

Comments
 (0)