Bump requests from 2.32.5 to 2.33.0 #70
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: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_call: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: pip install -e ".[dev]" | |
| - name: Run tests | |
| run: pytest tests/ -v | |
| - name: Check version sync | |
| run: | | |
| PYPROJECT_VER=$(python -c " | |
| try: | |
| import tomllib | |
| except ModuleNotFoundError: | |
| import pip._vendor.tomli as tomllib | |
| with open('pyproject.toml', 'rb') as f: | |
| data = tomllib.load(f) | |
| print(data['project']['version']) | |
| ") | |
| INIT_VER=$(python -c "from hapr import __version__; print(__version__)") | |
| if [ "$PYPROJECT_VER" != "$INIT_VER" ]; then | |
| echo "::error::Version mismatch: pyproject.toml=$PYPROJECT_VER, __init__.py=$INIT_VER" | |
| exit 1 | |
| fi | |
| echo "Versions match: $PYPROJECT_VER" | |
| sast: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - name: Install bandit | |
| run: pip install "bandit>=1.7" | |
| - name: Run bandit | |
| run: bandit -r hapr/ -c pyproject.toml -ll |