Merge pull request #79 from coreruleset/renovate/all-minor-patch #111
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 build a golang project | |
| # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go | |
| name: Python | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| paths: | |
| - "src/**" | |
| - "tests/**" | |
| - ".github/**" | |
| - "g4/**" | |
| - "pyproject.toml" | |
| pull_request: | |
| branches: [ "main" ] | |
| paths: | |
| - "src/**" | |
| - "tests/**" | |
| - ".github/**" | |
| - "g4/**" | |
| - "pyproject.toml" | |
| jobs: | |
| python: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: true | |
| matrix: | |
| python-version: ['3.11', '3.12', '3.13'] | |
| steps: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6 | |
| - name: Set up Python 3 | |
| uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@681c641aba71e4a1c380be3ab5e12ad51f415867 # v7 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python 3 | |
| uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: "Generate parser files" | |
| run: | | |
| ./generate.sh | |
| - name: Install dependencies | |
| run: | | |
| uv sync --all-extras --dev | |
| - name: "Run unit tests" | |
| run: | | |
| uv run pytest -vs |