Skip to content

Commit f0bf65d

Browse files
authored
Merge pull request #484 from microsoftgraph/bugfix/validate-step
- adds missing validate step
2 parents 7fb6622 + 839e09f commit f0bf65d

File tree

8 files changed

+547
-13
lines changed

8 files changed

+547
-13
lines changed

.github/policies/msgraph-sdk-python-branch-protection.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ configuration:
3636
# Required status checks to pass before merging. Values can be any string, but if the value does not correspond to any existing status check, the status check will be stuck on pending for status since nothing exists to push an actual status
3737
requiredStatusChecks:
3838
- CodeQL
39+
- Validate code accuracy
3940
# Require branches to be up to date before merging. Requires requiredStatusChecks. boolean
4041
requiresStrictStatusChecks: true
4142
# Indicates whether there are restrictions on who can push. boolean. Should be set with whoCanPush.

.github/workflows/build_publish.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,22 @@ permissions:
1111
contents: read
1212

1313
jobs:
14+
validate:
15+
name: Validate code accuracy
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Set up Python
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: '3.8'
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install -r requirements-dev.txt
27+
- name: Lint with Pylint
28+
run: pylint msgraph --disable=W --rcfile=.pylintrc
29+
1430
deploy:
1531
name: Publish distribution to PyPI
1632
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
@@ -33,4 +49,4 @@ jobs:
3349
uses: pypa/gh-action-pypi-publish@b7f401de30cb6434a1e19f805ff006643653240e
3450
with:
3551
user: __token__
36-
password: ${{ secrets.PYPI_API_TOKEN }}
52+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)