Merge pull request #54 from yukihiko-shinoda/handle-warnings #139
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: Test | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
python-version: [ '3.11', '3.10', '3.9' ] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- run: python -m pip install pipenv | |
- run: python -m pipenv sync --dev | |
# Invoke currently seems not support PowerShell, | |
# production code of this package doesn't depends on cmd, however test depends on cmd. | |
# - GitHub Actions default shell on Windows runners is changing to PowerShell | GitHub Changelog | |
# https://github.blog/changelog/2019-10-17-github-actions-default-shell-on-windows-runners-is-changing-to-powershell/ | |
- if: runner.os == 'Windows' | |
run: python -m pipenv run invoke test.all | |
shell: cmd | |
- if: runner.os == 'Linux' | |
run: python -m pipenv run invoke test.all | |
check_style: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- run: python -m pip install pipenv | |
- run: python -m pipenv sync --dev | |
- run: python -m pipenv run invoke style --check | |
check_lint_fast: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- run: python -m pip install pipenv | |
- run: python -m pipenv sync --dev | |
- run: python -m pipenv run invoke lint | |
check_lint_deep: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- run: python -m pip install pipenv | |
- run: python -m pipenv sync --dev | |
- run: python -m pipenv run invoke lint.deep |