Skip to content

Commit

Permalink
Update workflows and dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Dec 27, 2024
1 parent 6d82d59 commit 8e64229
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 12 deletions.
6 changes: 4 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
docs
tests
.github
.ruff_cache
.vscode
.nox
.venv
2 changes: 1 addition & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
jobs:
docker:
name: Docker
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
env:
USER: sdss
APP: lvmapi
Expand Down
16 changes: 10 additions & 6 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
release:
name: Build and publish

runs-on: ubuntu-latest
runs-on: ubuntu-24.04

permissions:
contents: write
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 8e64229

Please sign in to comment.