diff --git a/.dockerignore b/.dockerignore index 4627605..c49bb68 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,3 +1,5 @@ +docs +tests .github -.ruff_cache -.vscode +.nox +.venv diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 5fef40a..7189202 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -17,7 +17,7 @@ on: jobs: docker: name: Docker - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 env: USER: sdss APP: lvmapi diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 24984e8..a551fbe 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -12,19 +12,23 @@ jobs: lint: name: Lint - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v4 + - name: Install uv + uses: astral-sh/setup-uv@v5 + with: + enable-cache: true + - name: Set up Python uses: actions/setup-python@v5 with: - python-version: '3.12' - cache: 'pip' + python-version: '3.13' - name: Lint with ruff run: | - pip install ruff - ruff check src/ - ruff format --check src/ + uv tool install ruff + ruff check src/ tests/ + ruff format --check src/ tests/ diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 159bdf0..8142cf6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ jobs: release: name: Build and publish - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 permissions: contents: write @@ -27,7 +27,7 @@ jobs: token: ${{ secrets.GITHUB_TOKEN }} - name: Install uv - uses: astral-sh/setup-uv@v4 + uses: astral-sh/setup-uv@v5 with: enable-cache: true diff --git a/Dockerfile b/Dockerfile index bc7a85e..306f6bd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # Use a Python image with uv pre-installed -FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim +FROM ghcr.io/astral-sh/uv:python3.13-bookworm-slim # Install the project into `/app` WORKDIR /app