add LRUDict collection #1
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: Bump Version | |
| on: | |
| push: | |
| branches: [master] | |
| paths: | |
| - "src/**/*.py" | |
| workflow_dispatch: | |
| jobs: | |
| bump-version: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # For pushing tag and commit | |
| # Only run if push is from a human (not another workflow) | |
| if: github.actor != 'github-actions[bot]' && github.event_name == 'push' | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 # Fetch all history for bumpver | |
| - uses: extractions/setup-just@v2 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Install dependencies | |
| run: just install | |
| - name: Configure Git | |
| run: | | |
| git config --global user.name "GitHub Actions" | |
| git config --global user.email "actions@github.com" | |
| - name: Bump version | |
| run: | | |
| just bump-version --tag-commit | |
| # Extract the new version | |
| NEW_VERSION=$(grep -m1 'current_version = ' pyproject.toml | cut -d'"' -f2) | |
| echo "PACKAGE_VERSION=$NEW_VERSION" >> $GITHUB_ENV | |
| - name: Push changes | |
| run: | | |
| git push | |
| git push origin ${{ env.PACKAGE_VERSION }} |