Skip to content

Commit

Permalink
Correction de l'injection de version beta
Browse files Browse the repository at this point in the history
  • Loading branch information
Dolite committed Sep 1, 2023
1 parent 0040040 commit 3b8ef74
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[bumpversion]
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(-beta(?P<beta>\d+))?
serialize =
{major}.{minor}.{patch}-beta{beta}
{major}.{minor}.{patch}
current_version = 2.0.0-toto1

[bumpversion:file:pyproject.toml]

[bumpversion:file:src/rok4/__init__.py]
5 changes: 2 additions & 3 deletions .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,11 @@ jobs:
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install --upgrade build bump2version
bump2version --current-version 0.0.0 --new-version ${{ github.ref_name }} patch pyproject.toml src/rok4/__init__.py
bump2version --current-version 0.0.0 --new-version ${{ github.ref_name }} patch
pip install -e .
echo "/usr/lib/python3/dist-packages/" >.venv/lib/python${{ matrix.python-version }}/site-packages/system.pth
- name: Run unit tests
if: "matrix.os == 'ubuntu-20.04' && matrix.python-version == '3.8'"
run: |
source .venv/bin/activate
pip install -e .[test]
Expand Down Expand Up @@ -159,7 +158,7 @@ jobs:
commit_documentation:
name: Add documentation and unit tests results into gh-pages branch
needs: build_and_test
if: "always()&&!contains(${{ github.ref_name }},'beta')&&(needs.create_release.outputs.job_status=='success')&&(needs.build_and_test.outputs.job_status=='success')"
if: "!(contains(${{ github.ref_name }},'beta'))&&(needs.create_release.outputs.job_status=='success')&&(needs.build_and_test.outputs.job_status=='success')"
runs-on: ubuntu-latest

steps:
Expand Down

0 comments on commit 3b8ef74

Please sign in to comment.