This repository was archived by the owner on Apr 30, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +45
-0
lines changed
Expand file tree Collapse file tree 2 files changed +45
-0
lines changed Original file line number Diff line number Diff line change 1+ # Copyright 2023 tison <wander4096@gmail.com>
2+ #
3+ # Licensed under the Apache License, Version 2.0 (the "License");
4+ # you may not use this file except in compliance with the License.
5+ # You may obtain a copy of the License at
6+ #
7+ # http://www.apache.org/licenses/LICENSE-2.0
8+ #
9+ # Unless required by applicable law or agreed to in writing, software
10+ # distributed under the License is distributed on an "AS IS" BASIS,
11+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+ # See the License for the specific language governing permissions and
13+ # limitations under the License.
14+
15+ name : CI
16+
17+ on :
18+ pull_request :
19+ branches : [main]
20+
21+ jobs :
22+ check :
23+ runs-on : ubuntu-latest
24+ steps :
25+ - uses : actions/checkout@v3
26+ - name : Check License Header
27+ uses : korandoru/hawkeye@v2
28+
29+ - run : pipx install poetry
30+ - uses : actions/setup-python@v4
31+ with :
32+ python-version : " 3.10"
33+ architecture : " x64"
34+ cache : " poetry"
35+
36+ - run : poetry lock
37+ - run : poetry install
38+ - name : Check the poetry metadata
39+ run : |
40+ if [ "$(git diff --ignore-space-at-eol . | wc -l)" -gt "0" ]; then
41+ echo "Detected uncommitted changes after build. See status below:"
42+ git diff
43+ exit 1
44+ fi
Original file line number Diff line number Diff line change 1111# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212# See the License for the specific language governing permissions and
1313# limitations under the License.
14+
1415import logging
1516import sys
1617import textwrap
You can’t perform that action at this time.
0 commit comments