Skip to content

Add get_version_info tool + CI workflow (v0.1.6) #1

Add get_version_info tool + CI workflow (v0.1.6)

Add get_version_info tool + CI workflow (v0.1.6) #1

Workflow file for this run

name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: pytest (${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install package + test dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install pytest pytest-asyncio
- name: Run unit tests (L2)
run: python -m pytest tests/test_tools.py -v
- name: Run security tests
run: python -m pytest tests/test_security.py -v
ci-all-green:
name: ci-all-green
needs: [test]
runs-on: ubuntu-latest
if: always()
steps:
- name: Verify required jobs all succeeded
run: |
if [[ "${{ needs.test.result }}" != "success" ]]; then
echo "FAIL: test matrix did not all succeed (result=${{ needs.test.result }})"
exit 1
fi
echo "All required CI jobs passed."