chore(deps): bump ujson from 5.11.0 to 5.13.0 (#152) #639
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
| # This workflow will install Python dependencies, run tests and lint with a single version of Python | |
| # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | |
| name: Python application | |
| on: [ push ] | |
| jobs: | |
| setup: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| python-version: ${{ steps.set-python-version.outputs.version }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.13" | |
| - name: Extract min required python version | |
| id: set-python-version | |
| run: | | |
| # Use tomllib for robust parsing (Python 3.11+) | |
| VERSION=$(python3 -c "import tomllib; print(tomllib.load(open('pyproject.toml', 'rb'))['project']['requires-python'].replace('>=', '').strip())") | |
| echo "Extracted version: $VERSION" | |
| echo "version=$VERSION" >> "$GITHUB_OUTPUT" | |
| build: | |
| runs-on: ubuntu-latest | |
| needs: [ setup ] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python "${{ needs.setup.outputs.python-version }}" | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "${{ needs.setup.outputs.python-version }}" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Install dependencies | |
| run: uv sync | |
| - name: Linting | |
| run: uv run ruff check src/strongtyping | |
| - name: Python Format | |
| run: uv run ruff format src/strongtyping --check | |
| - name: Test with pytest | |
| run: | | |
| uv run pytest tests --cov=strongtyping | |
| - name: Run coverage | |
| uses: codecov/codecov-action@v3 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} |