From 77764b3397f7e35b7a2a128c1debc2bd8528ba00 Mon Sep 17 00:00:00 2001 From: Eli Battat Date: Thu, 19 Sep 2024 11:08:00 +0300 Subject: [PATCH] test bump version --- .github/workflows/Perf_Env_Build_Test_CI.yml | 33 ++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/.github/workflows/Perf_Env_Build_Test_CI.yml b/.github/workflows/Perf_Env_Build_Test_CI.yml index 40422253..26a4080d 100644 --- a/.github/workflows/Perf_Env_Build_Test_CI.yml +++ b/.github/workflows/Perf_Env_Build_Test_CI.yml @@ -15,6 +15,39 @@ concurrency: jobs: + test_bump_version: + name: bump_version + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [ '3.12' ] + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install latest benchmark-runner + run: | + python -m pip install --upgrade pip + pip install benchmark-runner wheel + + - name: 🎁 Bump Version + run: | + pip install setuptools bumpversion + version=$(python3 setup.py --version) + git config --global user.email "${{ secrets.EMAIL }}" + git config --global user.name "${{ secrets.USER_NAME }}" + git config pull.rebase false # merge + bumpversion patch + git commit .bumpversion.cfg setup.py -m "bump version to exist version v$version" + git push + git push --tags + + unittest: # run all python versions, in other jobs run the latest python name: unittest