Compatibility (3.9, 3.10) fromisoformat #6
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
# https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python | |
name: Code Check | |
on: | |
pull_request: null | |
push: | |
branches: | |
- main | |
jobs: | |
linting: | |
name: linting | |
runs-on: ubuntu-latest | |
steps: | |
# https://github.com/actions/checkout | |
- uses: actions/checkout@v4 | |
# Poetry must be installed before python setup for caching to work. | |
# https://github.com/actions/setup-python/issues/369 | |
- name: Install Poetry | |
run: pipx install poetry | |
# https://github.com/actions/setup-python | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
cache: poetry | |
- run: poetry install | |
- run: poetry env info | |
- run: poetry run task lint | |
testing: | |
name: testing | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
steps: | |
# https://github.com/actions/checkout | |
- uses: actions/checkout@v4 | |
# Poetry must be installed before python setup for caching to work. | |
# https://github.com/actions/setup-python/issues/369 | |
- name: Install Poetry | |
run: pipx install poetry | |
# https://github.com/actions/setup-python | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: poetry | |
# https://github.com/abatilo/actions-poetry/blob/master/action.yml | |
- run: poetry install --extras=all | |
- run: poetry env info | |
- run: poetry run task test |