Fix test_call and test_call_filters_none to pass SourceFile instead o… #85
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: Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| - name: Install shfmt | |
| run: sudo apt-get install -y shfmt | |
| - name: Install dependencies | |
| run: uv sync | |
| - name: Check Python formatting | |
| run: uv run ruff format --check . | |
| - name: Lint Python | |
| run: uv run ruff check . | |
| - name: Type check Python | |
| run: uv run ty check hellbox/ | |
| - name: Check Markdown formatting | |
| run: git ls-files '*.md' | xargs -r uv run mdformat --check | |
| - name: Check shell formatting | |
| run: git ls-files '*.sh' | xargs -r shfmt -d | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.11", "3.12", "3.13", "3.14"] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: uv sync | |
| - name: Run tests | |
| run: uv run pytest tests |