Skip to content

Commit

Permalink
First try at tom + resspect GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
mtauraso committed Nov 21, 2024
1 parent 7195475 commit a7e2a67
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 7 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/tom-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Tom tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
tom-test:
runs-on: ubuntu-latest

steps:
- name: Checkout RESSPECT
uses: actions/checkout@v4
with:
path: resspect

- name: Checkout tom_desc
uses: actions/checkout@v4
with:
repository: LSSTDESC/tom_desc
path: tom_desc
submodules: 'recursive'

- name: Unpack test files
working-directory: tom_desc/tests
run: |
tar xf elasticc2_alert_test_data.tar.bz2
- name: Bring docker environments up
working-directory: resspect
env:
TOM_DESC_DIR: ../tom_desc
run: |
docker compose up -d resspect
- name: Run a command
working-directory: resspect
run: |
docker compose exec -it resspect /bin/bash -c "echo hello world"
9 changes: 2 additions & 7 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
include:
- ${TOM_DESC_DIR:-../tom_desc}/tests/docker-compose.yaml
services:
resspect:
tty: true
Expand All @@ -20,10 +22,3 @@ services:
- DB_HOST=resspectdb
- DB_PORT=5432
- DB_NAME=resspectdb
networks:
- tom_desc_default

networks:
tom_desc_default:
external: true

0 comments on commit a7e2a67

Please sign in to comment.