Skip to content

Commit

Permalink
Add basic smoke test
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lucyb committed Apr 30, 2024
1 parent 441a582 commit e024cfc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
branches: [main]

jobs:
build:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -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
Expand Down
3 changes: 3 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,6 @@ default:

build:
docker build .

smoke-test:
docker run --rm research-template ls /opt/venv/bin/python3.10

0 comments on commit e024cfc

Please sign in to comment.