Add a mode to judge FileRename Class without distinguishing file extensions #600
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: cliboa-test | |
on: [pull_request] | |
jobs: | |
test_by_multiple_python_versions: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python_versions: [3.7, 3.8, 3.9, '3.10'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python_versions }} | |
- name: install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
py_version=${{ matrix.python_versions }} | |
pyproject_toml_version=${py_version//./} | |
cp cliboa/template/pyproject.above"$pyproject_toml_version".toml pyproject.toml | |
poetry env use ${pyproject_toml_version} | |
poetry install | |
- name: execute flake8 | |
run: | | |
poetry run flake8 . | |
- name: check black format | |
run: | | |
poetry run black --check . | |
- name: check isort | |
run: | | |
poetry run isort --check | |
- name: execute unittest and instrument coverage | |
run: | | |
poetry run pytest --cov cliboa --cov-report term-missing --cov-report=xml | |
- name: check layer dependency | |
run: | | |
if [ ${{ matrix.python_versions }} = 3.6 ]; then | |
echo "import-linter does not support python${{ matrix.python_versions }}" | |
else | |
cd cliboa | |
poetry run lint-imports | |
fi | |