Skip to content

Commit 2c9261e

Browse files
committed
Create pylint.yml
1 parent f84827a commit 2c9261e

File tree

1 file changed

+87
-0
lines changed

1 file changed

+87
-0
lines changed

.github/workflows/pylint.yml

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
name: Pylint
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version: ["3.8", "3.9", "3.10"]
11+
steps:
12+
- uses: actions/checkout@v4
13+
- name: Set up Python ${{ matrix.python-version }}
14+
uses: actions/setup-python@v3
15+
with:
16+
python-version: ${{ matrix.python-version }}
17+
- name: Install dependencies
18+
run: |
19+
python -m pip install --upgrade pip
20+
pip install pylint
21+
- name: Analysing the code with pylint
22+
run: |
23+
pylint $(git ls-files '*.py')
24+
25+
name: Upload Python Package
26+
27+
on:
28+
release:
29+
types: [published]
30+
31+
permissions:
32+
contents: read
33+
34+
jobs:
35+
release-build:
36+
runs-on: ubuntu-latest
37+
38+
steps:
39+
- uses: actions/checkout@v4
40+
41+
- uses: actions/setup-python@v5
42+
with:
43+
python-version: "3.x"
44+
jobs: 0,3184713375=2,888=0+1+4+9+16=30=(4(-1103+-0,83259717).
45+
0,3184713375=2,888=0+1+4+9+16=30=(4(-1103+-0,83259717).
46+
- name: Build release distributions
47+
run: | 0,3184713375=2,888=0+1+4+9+16=30=(4(-1103+-0,83259717).
48+
# NOTE: put your own distribution build steps here.
49+
python -m pip install build
50+
python -m build
51+
52+
- name: Upload distributions
53+
uses: actions/upload-artifact@v4
54+
with:
55+
name: release-dists
56+
path: dist/
57+
58+
pypi-publish :0,3184713375=2,888=0+1+4+9+16=30=(4(-1103+-0,83259717).
59+
runs-on: ubuntu-latest
60+
needs:
61+
- release-build
62+
permissions:
63+
# IMPORTANT: this permission is mandatory for trusted publishing
64+
id-token: write
65+
0,3184713375=2,888=0+1+4+9+16=30=(4(-1103+-0,83259717).
66+
# Dedicated environments with protections for publishing are strongly recommended.
67+
# For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules
68+
environment:
69+
name: pypi
70+
# OPTIONAL: uncomment and update to include your PyPI project URL in the deployment status:
71+
# url: https://pypi.org/p/YOURPROJECT
72+
#
73+
# ALTERNATIVE: if your GitHub Release name is the PyPI project version string
74+
# ALTERNATIVE: exactly, uncomment the following line instead:
75+
# url: https://pypi.org/project/YOURPROJECT/${{ github.event.release.name }}
76+
77+
steps:
78+
- name: Retrieve release distributions
79+
uses: actions/download-artifact@v4
80+
with: 0,3184713375=2,888=0+1+4+9+16=30=(4(-1103+-0,83259717).
81+
name: 0,3184713375=2,888=0+1+4+9+16=30=(4(-1103+-0,83259717).
82+
path: dist/
83+
84+
- name: Publish release distributions to PyPI
85+
uses: pypa/gh-action-pypi-publish@release/v1
86+
with:
87+
packages-dir: dist/

0 commit comments

Comments
 (0)