File tree 2 files changed +46
-2
lines changed
2 files changed +46
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : PyLS Release
2
+
3
+ on :
4
+ release :
5
+ types :
6
+ - created
7
+
8
+
9
+ jobs :
10
+ build :
11
+ name : Linux Py${{ matrix.PYTHON_VERSION }}
12
+ runs-on : ubuntu-latest
13
+ env :
14
+ CI : ' true'
15
+ OS : ' linux'
16
+ PYTHON_VERSION : ${{ matrix.PYTHON_VERSION }}
17
+ strategy :
18
+ fail-fast : false
19
+ matrix :
20
+ PYTHON_VERSION : ['3.8']
21
+ timeout-minutes : 10
22
+ steps :
23
+ - uses : actions/cache@v1
24
+ with :
25
+ path : ~/.cache/pip
26
+ key : ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-${{ hashFiles('setup.py') }}
27
+ restore-keys : ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-
28
+ - uses : actions/checkout@v2
29
+ with :
30
+ fetch-depth : 0
31
+ - uses : actions/setup-python@v2
32
+ with :
33
+ python-version : ${{ matrix.PYTHON_VERSION }}
34
+ architecture : ' x64'
35
+ - run : python -m pip install --upgrade pip setuptools wheel twine
36
+ - name : Build and publish python-language-server
37
+ env :
38
+ TWINE_USERNAME : __token__
39
+ TWINE_PASSWORD : ${{ secrets.PYPI_PYLS_TOKEN }}
40
+ run : |
41
+ python setup.py bdist_wheel --universal
42
+ python setup.py sdist
43
+ python -m twine check dist/*
44
+ python -m twine upload dist/*
Original file line number Diff line number Diff line change 18
18
OS : ' macos'
19
19
PYTHON_VERSION : ${{ matrix.PYTHON_VERSION }}
20
20
strategy :
21
- fail-fast : false
21
+ fail-fast : false
22
22
matrix :
23
23
PYTHON_VERSION : ['3.8', '3.7', '3.6', '2.7']
24
24
timeout-minutes : 10
31
31
- uses : actions/checkout@v2
32
32
- uses : actions/setup-python@v2
33
33
with :
34
- python-version : ${{ matrix.PYTHON_VERSION }}
34
+ python-version : ${{ matrix.PYTHON_VERSION }}
35
35
architecture : ' x64'
36
36
- name : Create Jedi environment for testing
37
37
if : matrix.PYTHON_VERSION != '2.7'
You can’t perform that action at this time.
0 commit comments