diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index a2c4938..9a30c52 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -42,13 +42,11 @@ jobs: lint: name: Python lint runs-on: ubuntu-latest + container: + image: python:3.12-slim steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: "3.12" - - name: Install ruff run: pip install ruff @@ -58,14 +56,14 @@ jobs: test: name: Python tests runs-on: ubuntu-latest + container: + image: python:3.12-slim steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: "3.12" - cache: "pip" - cache-dependency-path: pyproject.toml + # git is required by setuptools-scm during package build + - name: Install git + run: apt-get update -qq && apt-get install -y -qq git - name: Install package with dev deps run: pip install -e ".[dev]"