1
1
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
+
12
4
jobs :
13
5
check :
14
6
runs-on : ubuntu-latest
15
7
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
19
11
20
12
build :
21
13
runs-on : ubuntu-latest
22
14
steps :
23
- - uses : actions/checkout@v2
24
- - uses : actions/setup-python@v2
15
+ - uses : actions/checkout@v4
16
+ - uses : actions/setup-python@v5
25
17
with :
26
- python-version : 3.6
18
+ python-version : 3.9
27
19
- name : Install Dependencies
28
20
run : |
29
21
python -m pip install --upgrade pip
33
25
python setup.py sdist
34
26
python setup.py bdist_wheel
35
27
- name : Upload build artifacts
36
- uses : actions/upload-artifact@v2
28
+ uses : actions/upload-artifact@v4
37
29
with :
38
30
name : dist
39
31
path : dist
@@ -43,14 +35,14 @@ jobs:
43
35
runs-on : ubuntu-latest
44
36
strategy :
45
37
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' ]
48
40
49
41
name : " Test - Python(${{ matrix.python-version }}), Sphinx(${{ matrix.sphinx-version }})"
50
42
steps :
51
- - uses : actions/checkout@v2
43
+ - uses : actions/checkout@v4
52
44
- name : Setup Python
53
- uses : actions/setup-python@v2
45
+ uses : actions/setup-python@v5
54
46
with :
55
47
python-version : ${{ matrix.python-version }}
56
48
60
52
pip install -r ./dev-requirements.txt
61
53
62
54
- name : Download build artifacts
63
- uses : actions/download-artifact@v2
55
+ uses : actions/download-artifact@v4
64
56
with :
65
57
name : dist
66
58
path : dist
@@ -80,12 +72,12 @@ jobs:
80
72
if : contains(github.ref, 'refs/tags/') && github.repository_owner == 'wpilibsuite'
81
73
steps :
82
74
- name : Download build artifacts
83
- uses : actions/download-artifact@v2
75
+ uses : actions/download-artifact@v4
84
76
with :
85
77
name : dist
86
78
path : dist
87
79
- name : Publish a Python distribution to PyPI
88
- uses : pypa/gh-action-pypi-publish@master
80
+ uses : pypa/gh-action-pypi-publish@release/v1
89
81
with :
90
82
user : __token__
91
83
password : ${{ secrets.pypi_password }}
0 commit comments