Add pathlib.Path import to README example #42
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: Python application | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.12" | |
- name: Install poetry | |
uses: abatilo/actions-poetry@v2 | |
- name: Install poetry project | |
run: poetry install | |
- name: Check unused imports | |
run: poetry run ruff --select F401 . | |
- name: Sort imports | |
run: poetry run isort --check --diff . | |
- name: Run pyright | |
run: poetry run pyright | |
- name: Run pytest | |
run: poetry run pytest |