fix: update command setter value type to include None #18
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 CI | |
| on: | |
| pull_request: | |
| branches: [ main, master ] | |
| push: | |
| branches: [ main, master ] | |
| release: | |
| types: [ released ] | |
| workflow_dispatch: | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| name: Lint | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install poetry | |
| run: pipx install poetry | |
| - name: Install package | |
| run: poetry install | |
| - name: Run linters | |
| run: poetry run pre-commit run -a | |
| test: | |
| name: Python ${{ matrix.python-version }} (${{ matrix.platform }}) | |
| needs: lint | |
| runs-on: ${{ matrix.platform }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - python-version: "3.9" | |
| platform: ubuntu-latest | |
| toxenv: py39 | |
| - python-version: "3.10" | |
| platform: ubuntu-latest | |
| toxenv: py310 | |
| - python-version: "3.11" | |
| platform: ubuntu-latest | |
| toxenv: py311 | |
| - python-version: "3.12" | |
| platform: ubuntu-latest | |
| toxenv: py312 | |
| - python-version: "3.13" | |
| platform: ubuntu-latest | |
| toxenv: py313 | |
| - python-version: "3.12" | |
| platform: macos-latest | |
| toxenv: py312 | |
| - python-version: "3.12" | |
| platform: windows-latest | |
| toxenv: py312 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install poetry | |
| run: pipx install poetry | |
| - name: Install tox | |
| run: pipx install tox | |
| - name: Install package | |
| run: poetry install | |
| - name: Run tests | |
| run: tox -e ${{ matrix.toxenv }} | |
| - name: Run codecov | |
| env: | |
| CODECOV_TOKEN: | |
| ${{ secrets.CODECOV_TOKEN }} | |
| run: tox -e codecov | |
| release: | |
| runs-on: ubuntu-latest | |
| needs: test | |
| if: github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main') | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Install python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install poetry | |
| run: pipx install poetry | |
| - name: Install package | |
| run: poetry install | |
| - name: Run semantic-release | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| git config --global user.email "[email protected]" | |
| git config --global user.name "semantic-release" | |
| poetry run semantic-release -v version --no-changelog | |
| poetry run semantic-release publish | |