Skip to content

Merge branch 'main' of https://github.com/ThomasMGeo/CheckmateSample #63

Merge branch 'main' of https://github.com/ThomasMGeo/CheckmateSample

Merge branch 'main' of https://github.com/ThomasMGeo/CheckmateSample #63

Workflow file for this run

name: Version Check
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
check-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # This is important for git history
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools_scm
- name: Check setuptools_scm version detection
run: |
echo "setuptools_scm detected version:"
python -c "
import setuptools_scm
try:
version = setuptools_scm.get_version()
print(f'Version: {version}')
except Exception as e:
print(f'Error detecting version: {e}')
exit(1)
"
- name: Install and verify package
run: |
pip install -e .
python -c "import CheckmateSample; print(f'Package version: {CheckmateSample.__version__}')"