From e024cfc1cda2e9d3665e58bc0f091e0d26039e3c Mon Sep 17 00:00:00 2001 From: Lucy Bridges Date: Tue, 30 Apr 2024 15:09:24 +0100 Subject: [PATCH] Add basic smoke test This checks that python3.10 has been installed. In future we could extend this to include R / R packages, but that's expected to change very soon. --- .github/workflows/main.yml | 5 ++++- justfile | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 34732eb..38c3618 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -13,7 +13,7 @@ on: branches: [main] jobs: - build: + build-and-test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -28,6 +28,9 @@ jobs: - name: Build docker image run: just build + - name: Test docker image + run: just smoke-test + - name: Save docker image run: | docker save research-template | gzip > /tmp/research-template.tar.gz diff --git a/justfile b/justfile index 8e9a8f5..f09579e 100644 --- a/justfile +++ b/justfile @@ -6,3 +6,6 @@ default: build: docker build . + +smoke-test: + docker run --rm research-template ls /opt/venv/bin/python3.10 \ No newline at end of file