From a9319fb710e815f93128f63e9424052c5b87e70f Mon Sep 17 00:00:00 2001 From: "railway-app[bot]" <68434857+railway-app[bot]@users.noreply.github.com> Date: Sun, 26 Apr 2026 07:26:41 +0000 Subject: [PATCH] ci: add Dependabot config, CI workflow, and dev dependencies --- .github/dependabot.yml | 14 +++++++++++++ .github/workflows/test.yml | 41 ++++++++++++++++++++++++++++++++++++++ pyproject.toml | 2 ++ 3 files changed, 57 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/test.yml 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 diff --git a/pyproject.toml b/pyproject.toml index 730dd9a..1eb22e7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -18,4 +18,6 @@ dependencies = [ dev = [ "ruff>=0.15.8", "memory-profiler>=0.61.0", + "pytest>=7.0.0", + "pip-audit>=2.6.0", ]