File tree Expand file tree Collapse file tree 3 files changed +31
-25
lines changed Expand file tree Collapse file tree 3 files changed +31
-25
lines changed Original file line number Diff line number Diff line change @@ -16,27 +16,25 @@ jobs:
1616 name : Run editorconfig-checker
1717 runs-on : ubuntu-latest
1818 steps :
19- - name : Checkout
20- uses : actions/checkout@v4
21- - name : Install editorconfig-checker
22- run : pipx install "editorconfig-checker"
19+ - uses : actions/checkout@v4
20+
2321 - name : Run editorconfig-checker
24- run : ec .
22+ run : docker run --rm --volume=$PWD:/check mstruebing/editorconfig-checker
2523
2624 markdownlint :
2725 name : Run markdownlint
2826 runs-on : ubuntu-latest
2927 steps :
30- - name : Checkout
31- uses : actions/checkout@v4
28+ - uses : actions/checkout@v4
29+
3230 - name : Run markdownlint-cli2
33- uses : DavidAnson/markdownlint-cli2-action@v13
31+ uses : DavidAnson/markdownlint-cli2-action@v16
3432
3533 yamllint :
3634 name : Run yamllint
3735 runs-on : ubuntu-latest
3836 steps :
39- - name : Checkout
40- uses : actions/checkout@v4
37+ - uses : actions/checkout@v4
38+
4139 - name : Run yamllint
4240 run : yamllint .
Original file line number Diff line number Diff line change 1- name : Check
1+ name : Check Code Quality
22
33on :
44 push :
@@ -13,18 +13,19 @@ jobs:
1313 name : Lint ruff
1414 runs-on : ubuntu-latest
1515 steps :
16- - name : Checkout
17- uses : actions/checkout@v4
16+ - uses : actions/checkout@v4
17+
1818 - name : Install ruff
1919 run : pipx install ruff
20- - name : Run editorconfig-checker
20+
21+ - name : Run riff
2122 run : ruff check .
2223
2324 black :
2425 name : Lint Black
2526 runs-on : ubuntu-latest
2627 steps :
27- - name : Checkout
28- uses : actions/checkout@v4
28+ - uses : actions/checkout@v4
29+
2930 - name : Run Black
3031 uses : psf/black@stable
Original file line number Diff line number Diff line change 1- # .github/workflows/ci-cd.yml
2- name : PyPI Publish
3- on : push
1+ name : Publish to PyPI
2+ on :
3+ release :
4+ types :
5+ - published
6+ workflow_dispatch :
7+
48jobs :
5- pypi-publish :
6- name : Upload release to PyPI
7- if : startsWith(github.ref, 'refs/tags/v') # On tagged release only
9+ release-publish :
810 runs-on : ubuntu-latest
11+ permissions :
12+ contents : read
13+ id-token : write
914 environment :
1015 name : release
1116 url : https://pypi.org/p/openpaygo
12- permissions :
13- id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
17+
1418 steps :
1519 - uses : actions/checkout@v4
16- - name : Set up Python
20+
21+ - name : Setup Python
1722 uses : actions/setup-python@v4
1823 with :
1924 python-version : 3.x
25+
2026 - name : Generate package distribution
2127 run : python3 setup.py sdist
28+
2229 - name : Publish package distributions to PyPI
2330 uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments