File tree Expand file tree Collapse file tree 3 files changed +107
-0
lines changed
Expand file tree Collapse file tree 3 files changed +107
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish to PyPi @ Release
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ jobs :
8+ build :
9+ name : Build distribution
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - uses : actions/checkout@v4
14+ - name : Set up Python
15+ uses : actions/setup-python@v4
16+ with :
17+ python-version : " 3.x"
18+ - name : Install pypa/build
19+ run : >-
20+ python3 -m
21+ pip install
22+ build
23+ --user
24+ - name : Build source and wheels
25+ run : python3 -m build
26+ - name : Store the distribution packages
27+ uses : actions/upload-artifact@v3
28+ with :
29+ name : python-package-distributions
30+ path : dist/
31+
32+ publish-to-pypi :
33+ name : Upload to PyPi
34+ needs :
35+ - build
36+ runs-on : ubuntu-latest
37+ environment :
38+ name : pypi
39+ url : https://pypi.org/p/Starlette-Plus
40+ permissions :
41+ id-token : write
42+
43+ steps :
44+ - name : Download all the dists
45+ uses : actions/download-artifact@v3
46+ with :
47+ name : python-package-distributions
48+ path : dist/
49+ - name : Publish distribution to PyPi
50+ uses : pypa/gh-action-pypi-publish@release/v1
Original file line number Diff line number Diff line change 1+ name : Type Coverage and Linting
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ check :
10+ runs-on : ubuntu-latest
11+ strategy :
12+ fail-fast : false
13+ matrix :
14+ python-version : ["3.11", "3.x"]
15+
16+ name : " Type Coverage and Linting @ ${{ matrix.python-version }}"
17+ steps :
18+ - name : " Checkout Repository"
19+ uses : actions/checkout@v3
20+ with :
21+ fetch-depth : 0
22+
23+ - name : " Setup Python @ ${{ matrix.python-version }}"
24+ id : setup-python
25+ uses : actions/setup-python@v4
26+ with :
27+ python-version : " ${{ matrix.python-version }}"
28+ cache : " pip"
29+
30+ - name : " Install Python deps @ ${{ matrix.python-version }}"
31+ id : install-deps
32+ run : |
33+ pip install -Ur requirements.txt
34+ - name : " Run Pyright @ ${{ matrix.python-version }}"
35+ uses : jakebailey/pyright-action@v1
36+ with :
37+ no-comments : ${{ matrix.python-version != '3.x' }}
38+ warnings : false
39+
40+ - name : Lint with Ruff
41+ if : ${{ always() && steps.install-deps.outcome == 'success' }}
42+ uses : chartboost/ruff-action@v1
Original file line number Diff line number Diff line change 1+ name : validate-signoff
2+ on :
3+ pull_request :
4+ types :
5+ - opened
6+ - edited
7+
8+ jobs :
9+ validate :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - name : PR Description Check
13+ uses :
pythonistaguild/[email protected] 14+ with :
15+ content : " [x] I have read and agree to the [Developer Certificate of Origin]"
You can’t perform that action at this time.
0 commit comments