This repository was archived by the owner on Oct 20, 2025. It is now read-only.
dependency updates to preserve project while simplifying setup #3
This file contains hidden or 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 Lint | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - poetry.lock | |
| - pyproject.toml | |
| - blind_charging/** | |
| - tests/** | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - poetry.lock | |
| - pyproject.toml | |
| - blind_charging/** | |
| - tests/** | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.11"] | |
| poetry-version: ["1.3.1"] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Poetry | |
| uses: abatilo/actions-poetry@v2 | |
| with: | |
| poetry-version: ${{ matrix.poetry-version }} | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: 'poetry' | |
| - name: Install dependencies | |
| run: poetry install --with dev | |
| - name: Run linters | |
| run: poetry run pre-commit run --all-files --show-diff-on-failure |