File tree Expand file tree Collapse file tree 2 files changed +15
-14
lines changed Expand file tree Collapse file tree 2 files changed +15
-14
lines changed Original file line number Diff line number Diff line change 33
33
pipenv run isort .
34
34
- name : Lint with Pylint
35
35
run : |
36
- pipenv run pylint msgraph --disable=W --rcfile=.pylintrc
36
+ pipenv run pylint src --disable=W --rcfile=.pylintrc
37
37
- name : Test with pytest
38
38
run : |
39
39
pipenv run pytest
Original file line number Diff line number Diff line change @@ -11,18 +11,19 @@ jobs:
11
11
runs-on : ubuntu-latest
12
12
steps :
13
13
- name : Checkout code
14
- uses : actions/checkout@v2
15
- - name : Set up Python 3.8
16
- uses : actions/setup-python@v1
14
+ uses : actions/checkout@v3
15
+ - name : Set up Python 3.9
16
+ uses : actions/setup-python@v3
17
17
with :
18
- python-version : 3.8
19
- - name : Install flit
18
+ python-version : 3.9
19
+ - name : Install dependencies
20
20
run : |
21
- pip install flit
22
- - name : Publish the distibution to PyPI
23
- if : github.repository == 'microsoftgraph/msgraph-sdk-python-core'
24
- run : flit publish
25
- env :
26
- FLIT_INDEX_URL : https://upload.pypi.org/legacy/
27
- FLIT_USERNAME : __token__
28
- FLIT_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
21
+ python -m pip install --upgrade pip
22
+ pip install build
23
+ - name : Build package
24
+ run : python -m build
25
+ - name : Publish package
26
+ uses : pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
27
+ with :
28
+ user : __token__
29
+ password : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments