Skip to content

Commit abec190

Browse files
authored
feat: update CI, require Python 3.6+ (#18)
* Update ci.yml * feat: require Python 3.6+ * Update ci.yml
1 parent 61bf97f commit abec190

File tree

2 files changed

+8
-22
lines changed

2 files changed

+8
-22
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,13 @@ on:
88
- 'v*'
99

1010
jobs:
11-
# pre-commit:
12-
# runs-on: ubuntu-latest
13-
# steps:
14-
# - uses: actions/checkout@v2
15-
# - uses: actions/setup-python@v2
16-
# - uses: pre-commit/action@v2.0.0
17-
1811
checks:
1912
strategy:
2013
fail-fast: false
2114
matrix:
2215
python-version:
23-
- 3.5
24-
- 3.8
16+
- 3.6
17+
- 3.9
2518
runs-on:
2619
- ubuntu-latest
2720
- macos-latest
@@ -33,32 +26,24 @@ jobs:
3326
with:
3427
python-version: ${{ matrix.python-version }}
3528

36-
- name: Install dependencies
37-
run: python -m pip install pytest-xdist
38-
3929
- name: Install package
4030
run: python -m pip install .[test]
4131

4232
- name: Test package
4333
run: python -m pytest --forked
4434

4535

46-
47-
4836
dist:
4937
runs-on: ubuntu-latest
5038
name: Build distribution
5139
steps:
5240
- uses: actions/checkout@v2
5341
- uses: actions/setup-python@v2
5442

55-
- name: Install requirements
56-
run: python -m pip install build flit
57-
5843
- name: Build
59-
run: python -m build .
44+
run: pipx run build
6045

61-
- uses: actions/upload-artifact@v1
46+
- uses: actions/upload-artifact@v2
6247
with:
6348
name: DistPackage
6449
path: dist

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,24 @@ home-page = "https://github.com/pybind/pybind11_mkdoc"
1010
classifiers = [
1111
"License :: OSI Approved :: MIT License",
1212
"Development Status :: 3 - Alpha",
13-
"Programming Language :: Python :: 3.5",
1413
"Programming Language :: Python :: 3.6",
1514
"Programming Language :: Python :: 3.7",
1615
"Programming Language :: Python :: 3.8",
16+
"Programming Language :: Python :: 3.9",
1717
"Topic :: Software Development :: Documentation",
1818
"Operating System :: POSIX",
1919
"Operating System :: MacOS"
2020
]
2121
requires = ["clang"]
22-
requires-python = ">=3.5"
22+
requires-python = ">=3.6"
2323

2424
[tool.flit.scripts]
2525
pybind11-mkdoc = "pybind11_mkdoc:main"
2626

2727
[tool.flit.metadata.requires-extra]
2828
test = [
2929
"pytest",
30-
"pybind11"
30+
"pybind11",
31+
"pytest-xdist",
3132
]
3233

0 commit comments

Comments
 (0)