FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
Python/.github/workflows/python.yml at master · geekcomputers/Python · GitHub
geekcomputers
/
Python
Public
Notifications
You must be signed in to change notification settings
Fork
12.9k
Star
35.3k
Code
Issues
380
Pull requests
123
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
Python
/
.github
/
workflows
/
python.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
47 lines (37 loc) · 1.36 KB
Breadcrumbs
Python
/
.github
/
workflows
/
python.yml
Copy path
File metadata and controls
47 lines (37 loc) · 1.36 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name
:
Python Checks
on
:
pull_request
:
types
:
[opened, synchronize, reopened]
push
:
branches
:
-
main
concurrency
:
group
:
${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress
:
true
jobs
:
Test
:
runs-on
:
ubuntu-latest
strategy
:
matrix
:
python-version
:
['3.10', '3.11', '3.12']
steps
:
-
name
:
Checkout repository
uses
:
actions/checkout@v4
-
name
:
Set up Python ${{ matrix.python-version }}
uses
:
actions/setup-python@v5
with
:
python-version
:
${{ matrix.python-version }}
-
name
:
Install all dependencies and tools
run
:
|
python -m pip install --upgrade pip
pip install ruff bandit mypy pytest codespell requests-mock colorama
-
name
:
Run Codespell check
run
:
codespell --skip "*.json,*.txt,*.pdf,*.md" || true
-
name
:
Run Bandit security scan
run
:
bandit -r . --skip B101,B105 -ll || true
-
name
:
Run Pytest tests
run
:
pytest --tb=short || true
-
name
:
Run Ruff checks with ignored rules
run
:
ruff check . --ignore B904,B905,EM101,EXE001,G004,ISC001,PLC0415,PLC1901,PLW060,PLW1641,PLW2901,PT011,PT018,PT028,S101,S311,SIM905,SLF001,F405
-
name
:
Run Mypy type checks
run
:
mypy . --ignore-missing-imports --no-error-summary 2>/dev/null || true
Back
|
FazBrowse Home
|
New Git URL