Add get_version_info tool + CI workflow (v0.1.6) #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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." |