Merge pull request #31 from KaoruNishikawa/dependabot/pip/jinja2-3.1.3 #48
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: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
job: | |
name: Test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.7, 3.8, 3.9, "3.10"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: | | |
pip3 install poetry | |
poetry install | |
- name: Lint by Flake8 | |
run: poetry run flake8 tests xarray_quantity | |
- name: Format by Black | |
run: poetry run black --check tests xarray_quantity | |
- name: Test by pytest | |
run: poetry run pytest -v tests xarray_quantity | |