Skip to content
This repository was archived by the owner on Apr 30, 2024. It is now read-only.

Commit 965886e

Browse files
committed
ci: add basic workflow
Signed-off-by: tison <wander4096@gmail.com>
1 parent 7ea2b6f commit 965886e

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

.github/workflows/ci.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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

griseo/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
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+
1415
import logging
1516
import sys
1617
import textwrap

0 commit comments

Comments
 (0)