Skip to content

Commit 69a720d

Browse files
committed
Refactor code style and static type check workflows
1 parent 61cdb67 commit 69a720d

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/code-style-check-workflow-call.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ jobs:
2828
python -m pip install -e .[dev]
2929
- name: Code Style Check
3030
run: |
31-
flake8 pyjpboatrace tests --show-source
31+
flake8 pyjpboatrace --show-source
32+
flake8 tests --show-source

.github/workflows/static-type-check-workflow-call.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,5 @@ jobs:
2828
python -m pip install -e .[dev]
2929
- name: Static Type Check
3030
run: |
31-
mypy pyjpboatrace tests
31+
mypy pyjpboatrace
32+
mypy tests

.github/workflows/validate-version-workflow-call.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@ jobs:
3131
- name: Check Version
3232
run: |
3333
# Check if the tag is the same as pyjpboatrace.__version__
34-
tag=$(git describe --tags --abbrev=0)
35-
python -c "import os; import pyjpboatrace; assert pyjpboatrace.__version__ == os.getenv('tag')"
34+
export tag=$(echo "${{ inputs.git-ref }}" | cut -d / -f 3)
35+
echo "extracted tag from git-ref: $tag"
36+
python -c "import os; import pyjpboatrace; assert pyjpboatrace.__version__ == os.getenv('tag'), (pyjpboatrace.__version__, os.getenv('tag'))"

0 commit comments

Comments
 (0)