Skip to content

Merge pull request #71 from hellboxpy/dependabot/github_actions/actio… #22

Merge pull request #71 from hellboxpy/dependabot/github_actions/actio…

Merge pull request #71 from hellboxpy/dependabot/github_actions/actio… #22

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
- 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: 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"]
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