Skip to content

Commit

Permalink
Skip versioning test
Browse files Browse the repository at this point in the history
  • Loading branch information
eltos committed Jan 24, 2025
1 parent a2a2e86 commit 52b4a20
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,25 +55,25 @@ jobs:
with:
extra_args: --all-files --hook-stage=manual

versioning:
if: ${{ github.ref_type == 'branch' && github.ref_name != 'main'}}
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: |
# Determine version
pip install -e .
VERSION=$(python3 -c "from xplt import __version__;print('v' + __version__)")
echo "Xplt version: $VERSION"
# Ensure it is unique
TAG=$(git tag -l $VERSION)
echo "Matching git tag: $TAG"
if [[ $TAG ]]; then
echo "Version is not unique. Please update it in 'xplt/__init__.py'"
exit 1
fi
# versioning:
# if: ${{ github.ref_type == 'branch' && github.ref_name != 'main'}}
# runs-on: ubuntu-24.04
# steps:
# - uses: actions/checkout@v4
# with:
# fetch-depth: 0
# - uses: actions/setup-python@v5
# with:
# python-version: '3.12'
# - run: |
# # Determine version
# pip install -e .
# VERSION=$(python3 -c "from xplt import __version__;print('v' + __version__)")
# echo "Xplt version: $VERSION"
# # Ensure it is unique
# TAG=$(git tag -l $VERSION)
# echo "Matching git tag: $TAG"
# if [[ $TAG ]]; then
# echo "Version is not unique. Please update it in 'xplt/__init__.py'"
# exit 1
# fi

0 comments on commit 52b4a20

Please sign in to comment.