Skip to content

Commit

Permalink
Refactor code style and static type check workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
hmasdev committed Apr 4, 2024
1 parent 61cdb67 commit 69a720d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/code-style-check-workflow-call.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ jobs:
python -m pip install -e .[dev]
- name: Code Style Check
run: |
flake8 pyjpboatrace tests --show-source
flake8 pyjpboatrace --show-source
flake8 tests --show-source
3 changes: 2 additions & 1 deletion .github/workflows/static-type-check-workflow-call.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ jobs:
python -m pip install -e .[dev]
- name: Static Type Check
run: |
mypy pyjpboatrace tests
mypy pyjpboatrace
mypy tests
5 changes: 3 additions & 2 deletions .github/workflows/validate-version-workflow-call.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@ jobs:
- name: Check Version
run: |
# Check if the tag is the same as pyjpboatrace.__version__
tag=$(git describe --tags --abbrev=0)
python -c "import os; import pyjpboatrace; assert pyjpboatrace.__version__ == os.getenv('tag')"
export tag=$(echo "${{ inputs.git-ref }}" | cut -d / -f 3)
echo "extracted tag from git-ref: $tag"
python -c "import os; import pyjpboatrace; assert pyjpboatrace.__version__ == os.getenv('tag'), (pyjpboatrace.__version__, os.getenv('tag'))"

0 comments on commit 69a720d

Please sign in to comment.