diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 9d866e3..3bfe00c 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,7 +5,7 @@ version: 2 updates: - - package-ecosystem: "pip" # See documentation for possible values + - package-ecosystem: "uv" # See documentation for possible values directory: "/" # Location of package manifests schedule: interval: "weekly" diff --git a/.github/workflows/badge-wall.yml b/.github/workflows/badge-wall.yml index 088c1f2..9ad5486 100644 --- a/.github/workflows/badge-wall.yml +++ b/.github/workflows/badge-wall.yml @@ -1,7 +1,10 @@ name: Generate and Deploy Badge Wall +permissions: + contents: read + on: - push: + pull_request: branches: [main] schedule: - cron: '0 0 * * 1' # Weekly on Monday @@ -16,20 +19,18 @@ jobs: runs-on: ubuntu-latest permissions: contents: write - + steps: - - uses: actions/checkout@v4 - + - uses: actions/checkout@v5 + - name: Set up Python uses: actions/setup-python@v5 with: python-version: "3.13" - - - name: Install uv - run: | - curl -LsSf https://astral.sh/uv/install.sh | sh - echo "$HOME/.cargo/bin" >> $GITHUB_PATH - + + - uses: astral-sh/setup-uv@v6.5.0 + - name: Set up Python + run: uv python install - name: Create and activate virtual environment run: | uv venv @@ -37,8 +38,8 @@ jobs: echo "$PWD/.venv/bin" >> $GITHUB_PATH - name: Install dependencies - run: uv pip install -e . - + run: uv pip install . + - name: Generate badge wall run: generate-badges env: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ae09839..281dada 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,31 +1,23 @@ name: CI +permissions: + contents: read + on: - push: - branches: [ main ] pull_request: branches: [ main ] jobs: test: runs-on: ubuntu-latest - strategy: - matrix: - python-version: ["3.8", "3.13"] steps: - - 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 - run: | - curl -LsSf https://astral.sh/uv/install.sh | sh - echo "$HOME/.cargo/bin" >> $GITHUB_PATH - + - uses: actions/checkout@v5 + + - uses: astral-sh/setup-uv@v6.5.0 + - name: Set up Python + run: uv python install + - name: Create and activate virtual environment run: | uv venv