FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
contributors/.github/workflows/python-ci.yml at main · github-community-projects/contributors · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
github-community-projects
/
contributors
Public
Notifications
You must be signed in to change notification settings
Fork
25
Star
157
Code
Issues
3
Pull requests
2
Discussions
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
contributors
/
.github
/
workflows
/
python-ci.yml
Copy path
View runs
More file actions
More file actions
Latest commit
History
History
History
49 lines (43 loc) · 1.42 KB
Breadcrumbs
contributors
/
.github
/
workflows
/
python-ci.yml
Copy path
File metadata and controls
49 lines (43 loc) · 1.42 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
48
49
---
#
This workflow will install Python dependencies, run tests and lint with a variety of Python versions
#
For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name
:
Python package
on
:
push
:
branches
:
[main]
pull_request
:
branches
:
[main]
concurrency
:
group
:
${{ github.workflow }}-${{ github.ref }}
cancel-in-progress
:
true
permissions
:
contents
:
read
jobs
:
build
:
runs-on
:
ubuntu-latest
strategy
:
matrix
:
python-version
:
[3.11, 3.12, 3.13, 3.14]
steps
:
-
name
:
Harden the runner (Audit all outbound calls)
uses
:
step-security/harden-runner@05e31511f85b41b11d1cf0ef85d0992719546e2c
#
v2.21.0
with
:
egress-policy
:
audit
-
uses
:
actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
#
v7.0.1
with
:
persist-credentials
:
false
-
name
:
Install uv
uses
:
astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d
#
v10.0.1
with
:
version
:
"
0.10.9
"
enable-cache
:
true
-
name
:
Set up Python ${{ matrix.python-version }}
run
:
uv python install ${{ matrix.python-version }}
-
name
:
Install dependencies
run
:
uv sync --frozen --python ${{ matrix.python-version }}
-
name
:
Lint with flake8 and pylint
run
:
|
make lint
-
name
:
Test with pytest
run
:
|
make test
Back
|
FazBrowse Home
|
New Git URL