Merge pull request #123 from openmsa/dependabot/pip/pytest-cov-6.2.1 #171
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, next_release/*] | |
| jobs: | |
| run-tests: | |
| name: Run unittest | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| python-version: [3.12] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| token: ${{ secrets.REPO_ACCESS_TOKEN }} | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| DIR=$(pwd) | |
| cd ../ | |
| python -m pip install --upgrade pip | |
| pip install flake8 pytest | |
| if [ -f ${DIR}/requirements.txt ]; then pip install -r ${DIR}/requirements.txt ; fi | |
| if [ -f ${DIR}/requirements-dev.txt ]; then pip install -r ${DIR}/requirements-dev.txt ; fi | |
| - name: Test with pytest | |
| run: | | |
| ./run_tests quiet | |
| bump-version: | |
| name: Bump version | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.12 | |
| - name: Install dependencies | |
| run: | | |
| DIR=$(pwd) | |
| cd ../ | |
| python -m pip install --upgrade pip | |
| python -m pip install bump2version | |
| cd ${DIR} | |
| bump2version patch msa_sdk/__init__.py | |
| - name: Extract version | |
| id: extract_version | |
| run: | | |
| echo current_version=$(grep -oP '__version__ = "\K[^"]+' msa_sdk/__init__.py) >> $GITHUB_ENV | |
| - name: Commit bump version | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| with: | |
| commit_message: 🔖 Commit bump version ${{ env.current_version }} | |
| commit_user_name: qa4ubiqube (bot) | |
| commit_user_email: qa@ubiqube.com | |
| commit_author: qa4ubiqube <qa@ubiqube.com> | |
| push_options: --force |