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
20 changes: 20 additions & 0 deletions .github/workflows/run_dev_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,23 @@ jobs:
run: flake8 . && interrogate --verbose .
- name: Run tests and coverage
run: coverage run -m unittest discover && coverage report
docker_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build docker image
uses: docker/build-push-action@v3
with:
context: .
push: false
load: true
tags: aind-metadata-mapper:pr-test
- name: Smoke test docker image
run: |
docker run --rm aind-metadata-mapper:pr-test cat /etc/os-release
docker run --rm aind-metadata-mapper:pr-test git --version
docker run --rm aind-metadata-mapper:pr-test python -c \
"import aind_metadata_mapper; print(aind_metadata_mapper.__version__)"
docker run --rm aind-metadata-mapper:pr-test aind-instrument --help
20 changes: 20 additions & 0 deletions .github/workflows/run_main_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,26 @@ jobs:
run: |
echo "=== Running unit tests with coverage ==="
coverage run -m unittest discover && coverage report
docker_build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Build docker image
uses: docker/build-push-action@v3
with:
context: .
push: false
load: true
tags: aind-metadata-mapper:pr-test
- name: Smoke test docker image
run: |
docker run --rm aind-metadata-mapper:pr-test cat /etc/os-release
docker run --rm aind-metadata-mapper:pr-test git --version
docker run --rm aind-metadata-mapper:pr-test python -c \
"import aind_metadata_mapper; print(aind_metadata_mapper.__version__)"
docker run --rm aind-metadata-mapper:pr-test aind-instrument --help
verify_version:
runs-on: ubuntu-latest
steps:
Expand Down
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
FROM python:3.10-bullseye
FROM python:3.10-bookworm
WORKDIR /app
ADD src ./src
ADD pyproject.toml .
ADD setup.py .

# Add git in case we need to install from branches
RUN apt-get update && apt-get install -y git
RUN apt-get update \
&& apt-get install -y --no-install-recommends git \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --upgrade pip
RUN pip install . --no-cache-dir
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ dependencies = [
"pyyaml",
"pydantic-settings>=2.8.0",
"jsonschema",
"aind-data-schema>=2.7.1,<3",
"aind-data-schema>=2.9.0,<3",
"aind-metadata-extractor==0.3.11",
]

Expand Down
2 changes: 1 addition & 1 deletion src/aind_metadata_mapper/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""Init package"""

__version__ = "1.3.0"
__version__ = "1.3.2"
Loading