diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..c39cbbc --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,14 @@ +version: 2 +updates: + - package-ecosystem: "pip" + directory: "/" + schedule: + interval: "weekly" + day: "monday" + time: "03:00" + timezone: "UTC" + open-pull-requests-limit: 5 + labels: + - "dependencies" + assignees: + - "repo-owner" diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..280933f --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,41 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + +jobs: + test: + name: Python ${{ matrix.python-version }} + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + python-version: ["3.10", "3.11", "3.12"] + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install uv + uses: astral-sh/setup-uv@v5 + + - name: Install dependencies + run: uv sync --all-groups + + - name: Lint with ruff + run: uv run ruff check . + + - name: Run tests + run: uv run pytest + + - name: Security audit + run: uv run pip-audit