chore(deps): update actions/setup-go digest to 7a3fe6c in .github/wor… #115
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@61cb8a9741eeb8a550a1b8544337180c0fc8476b # 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 |