Skip to content

🐛 fix: key of KVPair can be None #397

🐛 fix: key of KVPair can be None

🐛 fix: key of KVPair can be None #397

Workflow file for this run

name: Python package
on:
push:
branches:
- "**"
jobs:
python-check:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
platform: [ubuntu-latest, macos-latest]
fail-fast: false
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- uses: actions/cache@v4
id: cache
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-python-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-root
- name: Install pdm
run: |
python -m pip install --upgrade pip
python -m pip install pdm>=2.15.0
- name: Install Dependencies
run: python -m pdm sync -d
- name: Lint
run: python -m pdm run bash scripts/lint.sh
- name: Test
run: python -m pdm run bash scripts/test.sh
- name: Upload coverage
uses: codecov/codecov-action@v3
bump-version:
runs-on: ubuntu-latest
needs: [python-check]
if: |
github.event_name == 'push' &&
github.ref_name == 'main' &&
github.ref_type == 'branch' &&
!startsWith(github.event.head_commit.message, '🔖 bump(release):') &&
!startsWith(github.event.head_commit.message, 'bump(release):')
name: "Bump version and create changelog with commitizen"
steps:
- name: Checkout
if: github.actor == 'dependabot[bot]'
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ github.token }}
submodules: recursive
- name: Checkout
if: github.actor != 'dependabot[bot]'
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
submodules: recursive
- name: Create bump and changelog
uses: commitizen-tools/commitizen-action@master
with:
github_token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
extra_requirements: "cz-conventional-gitmoji"