chore(deps): security upgrades (pip-audit) #74
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
| # CI: lint and run tests (CI-safe; Things 3 not available in CI) | |
| name: Tests | |
| on: | |
| push: | |
| branches: [source] | |
| pull_request: | |
| branches: [source] | |
| jobs: | |
| lint-and-test: | |
| 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 uv | |
| uses: astral-sh/setup-uv@v4 | |
| with: | |
| version: "latest" | |
| - name: Install dependencies | |
| run: uv sync --group dev | |
| - name: Security audit (pip-audit) | |
| run: uvx pip-audit | |
| - name: Ruff check | |
| run: uv run ruff check . | |
| - name: Ruff format (check only) | |
| run: uv run ruff format --check . | |
| - name: Pytest (CI-safe, excludes real/Things 3 tests) | |
| run: uv run python -m pytest tests -v |