55 push :
66 branches : [master]
77 paths-ignore :
8+ - " .gitattributes"
89 - " .gitignore"
910 - " .prettierignore"
1011 - " MANIFEST.in"
1112 pull_request :
13+ branches : [master]
1214
1315concurrency :
1416 group : ${{ github.workflow }}-${{ github.ref }}
@@ -30,34 +32,22 @@ jobs:
3032 - name : " Debug event.json"
3133 continue-on-error : true
3234 run : cat "${GITHUB_EVENT_PATH}"
33-
3435 - name : " Debug CTX github"
3536 continue-on-error : true
3637 env :
3738 GITHUB_CTX : ${{ toJSON(github) }}
3839 run : echo "$GITHUB_CTX"
39-
4040 - name : " Debug Environment"
4141 continue-on-error : true
4242 run : env
4343
44- # - name: "Check Changed Files"
45- # id: changed
46- # uses: tj-actions/changed-files@v47
47- # with:
48- # files: |
49- # src/**
50- # tests/**
51- # pyproject.toml
52-
5344 - name : " Setup Python 3.13"
5445 uses : actions/setup-python@v6
5546 with :
5647 python-version : " 3.13"
5748 cache : " pip"
5849
59- - name : " Install"
60- id : install
50+ - name : " Install Project"
6151 run : |
6252 python -m pip install -U pip
6353 python -m pip install --group dev
7565
7666 - name : " astral-sh/ruff"
7767 if : ${{ !cancelled() }}
78- uses : astral-sh/ruff-action@v3
68+ uses : astral-sh/ruff-action@57714a7c8a2e59f32539362ba31877a1957dded1 # v3.5.1
7969 with :
8070 version : latest
8171
9080
9181 - name : " isort"
9282 if : ${{ !cancelled() }}
93- uses : isort/isort-action@v1
83+ uses : isort/isort-action@24d8a7a51d33ca7f36c3f23598dafa33f7071326 # v1.1.1
9484
9585 - name : " mypy"
9686 if : ${{ !cancelled() }}
@@ -107,39 +97,32 @@ jobs:
10797 run : |
10898 validate-pyproject pyproject.toml
10999
110- - name : " prettier "
100+ - name : " tombi "
111101 if : ${{ !cancelled() }}
112102 run : |
113- echo "::group::Install"
114- npm install prettier
115- echo "::endgroup::"
116- npx prettier --check .
103+ tombi lint
117104
118105 - name : " yamllint"
119106 if : ${{ !cancelled() }}
120- env :
121- CONFIG : " {extends: relaxed, ignore: [node_modules/], rules: {line-length: {max: 119}}}"
122107 run : |
123108 echo "::group::List Files"
124- yamllint -d '${{ env.CONFIG }}' --list-files .
109+ yamllint -d .github/yamllint.yaml --list-files .
125110 echo "::endgroup::"
126- yamllint -d '${{ env.CONFIG }}' .
111+ yamllint -d .github/yamllint.yaml .
127112
128- - name : " actionlint "
113+ - name : " prettier "
129114 if : ${{ !cancelled() }}
130115 run : |
131- echo "::group::Download"
132- loc=$(curl -sI https://github.com/rhysd/actionlint/releases/latest | grep -i '^location:')
133- echo "loc: ${loc}"
134- tag=$(echo "${loc}" | sed -E 's|.*/tag/v?(.*)|\1|' | tr -d '\t\r\n')
135- echo "tag: ${tag}"
136- url="https://github.com/rhysd/actionlint/releases/latest/download/actionlint_${tag}_linux_amd64.tar.gz"
137- echo "url: ${url}"
138- curl -sL "${url}" | tar xz -C "${RUNNER_TEMP}" actionlint
139- file "${RUNNER_TEMP}/actionlint"
140- "${RUNNER_TEMP}/actionlint" --version
116+ echo "::group::Install"
117+ npm install prettier
141118 echo "::endgroup::"
142- "${RUNNER_TEMP}/actionlint" -color -verbose -shellcheck= -pyflakes=
119+ npx prettier --check .
120+
121+ - name : " actionlint"
122+ if : ${{ !cancelled() }}
123+ uses : cssnr/actionlint-action@v1
124+ with :
125+ shellcheck_opts : -e SC2012
143126
144127 - name : " pytest"
145128 if : ${{ !cancelled() }}
@@ -151,21 +134,6 @@ jobs:
151134
152135 - name : " codecov"
153136 if : ${{ !cancelled() && steps.coverage.outcome == 'success' }}
154- uses : codecov/codecov-action@v5
137+ uses : codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de # v5.5.2
155138 with :
156139 token : ${{ secrets.CODECOV_TOKEN }}
157-
158- # - name: "hadolint"
159- # if: ${{ !cancelled() }}
160- # uses: hadolint/hadolint-action@v3.3.0
161- # with:
162- # dockerfile: Dockerfile
163-
164- # - name: "Vale"
165- # if: ${{ !cancelled() }}
166- # uses: errata-ai/vale-action@v2.1.1
167-
168- # - name: "SonarQube"
169- # uses: SonarSource/sonarqube-scan-action@v4
170- # env:
171- # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
0 commit comments