Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/jgadling/db-import-v2b' into jga…
Browse files Browse the repository at this point in the history
…dling/schema-sync
  • Loading branch information
jgadling committed Sep 19, 2024
2 parents 29e392c + 32737ef commit 0e5c26c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/apiv2-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,18 @@ jobs:
name: "Run tests"
steps:
- uses: actions/checkout@v3
- name: Install AWS CLI v2
shell: bash
run: |
set -ue
set -o pipefail
URL="https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip"
curl $URL -o /tmp/awscliv2.zip -v
unzip -q /tmp/awscliv2.zip -d /tmp
rm /tmp/awscliv2.zip
sudo /tmp/aws/install --update
rm -rf /tmp/aws/
# Set up a local test env and run tests
- name: Run tests
run: |
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ api-init:
apiv2-init:
docker compose --profile apiv2 up -d
docker compose exec db sh -c 'echo create database cryoetv2 | psql postgres://postgres:[email protected]:5432/cryoet' || true
$(MAKE) -C apiv2 seed-moto
cd ./test_infra/; ./seed_moto.sh
$(MAKE) -C apiv2 alembic-upgrade-head

.PHONY: clean
Expand Down
1 change: 1 addition & 0 deletions apiv2/database/models/tomogram_voxel_spacing.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions apiv2/schema/schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2205,6 +2205,8 @@ classes:
multivalued: true
inverse: AnnotationFile.tomogram_voxel_spacing
range: AnnotationFile
annotations:
cascade_delete: true
run:
name: run
from_schema: cdp-dataset-config
Expand Down

0 comments on commit 0e5c26c

Please sign in to comment.