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
27 changes: 27 additions & 0 deletions .github/workflows/test-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Build the Docker image on PRs without pushing, so base-image / dependency
# breakage (e.g. a Python version mismatch) is caught before it reaches the
# publish workflow on master. No registry login or secrets are needed because
# nothing is pushed, which keeps this working for pull requests from forks.

name: Test Docker image build

on:
pull_request:
paths:
- 'Dockerfile'
- 'pyproject.toml'
- '.github/workflows/test-docker.yml'

jobs:
build:
name: Build Docker image (no push)
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v6

- name: Build Docker image
uses: docker/build-push-action@bcafcacb16a39f128d818304e6c9c0c18556b85f
with:
context: .
push: false
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
FROM dptechnology/dflow:latest
FROM python:3.11-slim

# git is required at build time: the version is derived from the repository
# by setuptools_scm (see [tool.setuptools_scm] in pyproject.toml).
RUN apt-get update \
&& apt-get install -y --no-install-recommends git \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /data/dpgen2
COPY ./ ./
Expand Down
Loading