File tree 3 files changed +31
-25
lines changed
3 files changed +31
-25
lines changed Original file line number Diff line number Diff line change @@ -16,27 +16,25 @@ jobs:
16
16
name : Run editorconfig-checker
17
17
runs-on : ubuntu-latest
18
18
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
+
23
21
- name : Run editorconfig-checker
24
- run : ec .
22
+ run : docker run --rm --volume=$PWD:/check mstruebing/editorconfig-checker
25
23
26
24
markdownlint :
27
25
name : Run markdownlint
28
26
runs-on : ubuntu-latest
29
27
steps :
30
- - name : Checkout
31
- uses : actions/checkout@v4
28
+ - uses : actions/checkout@v4
29
+
32
30
- name : Run markdownlint-cli2
33
- uses : DavidAnson/markdownlint-cli2-action@v13
31
+ uses : DavidAnson/markdownlint-cli2-action@v16
34
32
35
33
yamllint :
36
34
name : Run yamllint
37
35
runs-on : ubuntu-latest
38
36
steps :
39
- - name : Checkout
40
- uses : actions/checkout@v4
37
+ - uses : actions/checkout@v4
38
+
41
39
- name : Run yamllint
42
40
run : yamllint .
Original file line number Diff line number Diff line change 1
- name : Check
1
+ name : Check Code Quality
2
2
3
3
on :
4
4
push :
@@ -13,18 +13,19 @@ jobs:
13
13
name : Lint ruff
14
14
runs-on : ubuntu-latest
15
15
steps :
16
- - name : Checkout
17
- uses : actions/checkout@v4
16
+ - uses : actions/checkout@v4
17
+
18
18
- name : Install ruff
19
19
run : pipx install ruff
20
- - name : Run editorconfig-checker
20
+
21
+ - name : Run riff
21
22
run : ruff check .
22
23
23
24
black :
24
25
name : Lint Black
25
26
runs-on : ubuntu-latest
26
27
steps :
27
- - name : Checkout
28
- uses : actions/checkout@v4
28
+ - uses : actions/checkout@v4
29
+
29
30
- name : Run Black
30
31
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
+
4
8
jobs :
5
- pypi-publish :
6
- name : Upload release to PyPI
7
- if : startsWith(github.ref, 'refs/tags/v') # On tagged release only
9
+ release-publish :
8
10
runs-on : ubuntu-latest
11
+ permissions :
12
+ contents : read
13
+ id-token : write
9
14
environment :
10
15
name : release
11
16
url : https://pypi.org/p/openpaygo
12
- permissions :
13
- id-token : write # IMPORTANT: this permission is mandatory for trusted publishing
17
+
14
18
steps :
15
19
- uses : actions/checkout@v4
16
- - name : Set up Python
20
+
21
+ - name : Setup Python
17
22
uses : actions/setup-python@v4
18
23
with :
19
24
python-version : 3.x
25
+
20
26
- name : Generate package distribution
21
27
run : python3 setup.py sdist
28
+
22
29
- name : Publish package distributions to PyPI
23
30
uses : pypa/gh-action-pypi-publish@release/v1
You can’t perform that action at this time.
0 commit comments