Skip to content

Commit 1dd3e2c

Browse files
authored
Update Actions and python & sphinx matrix (#9)
Update pytest to work with newer python versions Update supported Python versions to currently supported
1 parent 1ce6549 commit 1dd3e2c

File tree

3 files changed

+24
-30
lines changed

3 files changed

+24
-30
lines changed

.github/workflows/CI.yml

+16-24
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,21 @@
11
name: CI
2-
on:
3-
push:
4-
branches:
5-
- main
6-
pull_request:
7-
branches:
8-
- main
9-
create:
10-
tags:
11-
- '*'
2+
on: [pull_request, push]
3+
124
jobs:
135
check:
146
runs-on: ubuntu-latest
157
steps:
16-
- uses: actions/checkout@v2
17-
- uses: actions/setup-python@v2
18-
- uses: psf/black@20.8b1
8+
- uses: actions/checkout@v4
9+
- uses: actions/setup-python@v5
10+
- uses: psf/black@24.4.2
1911

2012
build:
2113
runs-on: ubuntu-latest
2214
steps:
23-
- uses: actions/checkout@v2
24-
- uses: actions/setup-python@v2
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-python@v5
2517
with:
26-
python-version: 3.6
18+
python-version: 3.9
2719
- name: Install Dependencies
2820
run: |
2921
python -m pip install --upgrade pip
@@ -33,7 +25,7 @@ jobs:
3325
python setup.py sdist
3426
python setup.py bdist_wheel
3527
- name: Upload build artifacts
36-
uses: actions/upload-artifact@v2
28+
uses: actions/upload-artifact@v4
3729
with:
3830
name: dist
3931
path: dist
@@ -43,14 +35,14 @@ jobs:
4335
runs-on: ubuntu-latest
4436
strategy:
4537
matrix:
46-
python-version: ['3.6', '3.7', '3.8', '3.9', 'pypy3']
47-
sphinx-version: ['2', '3']
38+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', 'pypy3.9']
39+
sphinx-version: ['2', '3', '4', '5', '6', '7']
4840

4941
name: "Test - Python(${{ matrix.python-version }}), Sphinx(${{ matrix.sphinx-version }})"
5042
steps:
51-
- uses: actions/checkout@v2
43+
- uses: actions/checkout@v4
5244
- name: Setup Python
53-
uses: actions/setup-python@v2
45+
uses: actions/setup-python@v5
5446
with:
5547
python-version: ${{ matrix.python-version }}
5648

@@ -60,7 +52,7 @@ jobs:
6052
pip install -r ./dev-requirements.txt
6153
6254
- name: Download build artifacts
63-
uses: actions/download-artifact@v2
55+
uses: actions/download-artifact@v4
6456
with:
6557
name: dist
6658
path: dist
@@ -80,12 +72,12 @@ jobs:
8072
if: contains(github.ref, 'refs/tags/') && github.repository_owner == 'wpilibsuite'
8173
steps:
8274
- name: Download build artifacts
83-
uses: actions/download-artifact@v2
75+
uses: actions/download-artifact@v4
8476
with:
8577
name: dist
8678
path: dist
8779
- name: Publish a Python distribution to PyPI
88-
uses: pypa/gh-action-pypi-publish@master
80+
uses: pypa/gh-action-pypi-publish@release/v1
8981
with:
9082
user: __token__
9183
password: ${{ secrets.pypi_password }}

dev-requirements.txt

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
sphinx
22
six
3-
pytest==5.4.3
4-
wheel==0.34.2
5-
requests==2.25.1
3+
wheel==0.43.0
4+
pytest==7.4.4
5+
requests==2.25.1
6+
defusedxml

setup.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,17 @@
3737
"License :: OSI Approved :: MIT License",
3838
"Natural Language :: English",
3939
"Operating System :: OS Independent",
40-
"Programming Language :: Python :: 3.6",
41-
"Programming Language :: Python :: 3.7",
4240
"Programming Language :: Python :: 3.8",
4341
"Programming Language :: Python :: 3.9",
42+
"Programming Language :: Python :: 3.10",
43+
"Programming Language :: Python :: 3.11",
44+
"Programming Language :: Python :: 3.12",
4445
"Programming Language :: Python",
4546
"Topic :: Documentation :: Sphinx",
4647
"Topic :: Documentation",
4748
"Topic :: Software Development :: Documentation",
4849
"Topic :: Text Processing",
4950
"Topic :: Utilities",
5051
],
51-
python_requires=">=3.6",
52+
python_requires=">=3.8",
5253
)

0 commit comments

Comments
 (0)