Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
version: 2
updates:
- package-ecosystem: "pip"
- package-ecosystem: "uv"
directory: "/"
schedule:
interval: "monthly"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/auto-merge-for-dependabot-prs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ jobs:
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
PR_URL: ${{ github.event.pull_request.html_url }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19 changes: 6 additions & 13 deletions .github/workflows/python-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ on: [push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -15,29 +14,23 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Install uv
run: pipx install 'uv==0.10.12'
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: astral-sh/setup-uv@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
uv sync ${{ matrix.dependency-extras }}
sudo apt install e2fsprogs restic
- name: Check formatting with ruff format
run: |
uv run ruff format --check
- name: Check formatting with ruff
run: uv run ruff format --check .
- name: Check import ordering with ruff
run: |
uv run ruff check --output-format=github --select I
run: uv run ruff check --output-format=github --select I .
- name: Check static typing with mypy
run: uv run mypy .
- name: Lint with ruff
run: |
uv run ruff check --output-format=github
run: uv run ruff check --output-format=github .
- name: Test with pytest
run: |
uv run pytest --junitxml=junit/test-results.xml --cov-report=xml --cov-report=html
run: uv run pytest --junitxml=junit/test-results.xml --cov-report=xml --cov-report=html

check:
if: always()
Expand Down
24 changes: 10 additions & 14 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,24 @@ jobs:
build-dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
run: pipx install 'uv==0.10.12'
- name: Publish package
run: |
uv build
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Build package
run: uv build
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/

pypi-publish:
name: upload release to PyPI
name: Upload release to PyPI
needs: [build-dist]
runs-on: ubuntu-latest
# Specifying a GitHub environment is optional, but strongly encouraged
environment: pypi
permissions:
# IMPORTANT: this permission is mandatory for Trusted Publishing
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: dist
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
name: Release Please

on:
push:
branches:
Expand All @@ -8,13 +10,11 @@ permissions:
contents: write
pull-requests: write

name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
with:
token: ${{ secrets.ReleasePlease }}
token: ${{ secrets.RELEASE_PLEASE }}
release-type: python
Loading