From dbc900bfe0e4777d309f5977ec7cd15b20e1d6e7 Mon Sep 17 00:00:00 2001 From: antonio-leblanc Date: Tue, 16 Sep 2025 15:24:02 -0300 Subject: [PATCH] add test to docker #118 --- .github/workflows/docker.yml | 10 +++++++--- Dockerfile | 5 ++++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index e0ccfa77..d701ebed 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -4,19 +4,20 @@ on: push: branches: - "master" - # - "dev-ci" + - "dev-ci" pull_request: branches: [ "master" ] workflow_dispatch: jobs: - docker: runs-on: ubuntu-latest steps: - name: Checkout repository uses: actions/checkout@v4 + with: + lfs: true - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -26,4 +27,7 @@ jobs: - name: Check ForeFire version inside Docker run: | - docker run --rm forefire:latest forefire -v \ No newline at end of file + docker run --rm forefire:latest forefire -v + + - name: Run 'runff' Test Script inside Docker + run: docker run --rm forefire:latest bash -c "cd tests/runff && bash ff-run.bash" \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index d7bbed94..2df0e79f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,6 +12,9 @@ RUN apt-get update && \ git && \ rm -rf /var/lib/apt/lists/* +# Install Python dependencies for testing +RUN pip3 install --no-cache-dir lxml xarray netCDF4 + WORKDIR /forefire ENV FOREFIREHOME=/forefire @@ -24,7 +27,7 @@ RUN sh cmake-build.sh # Add the main forefire executable to the PATH RUN cp /forefire/bin/forefire /usr/local/bin/ -# Use pip to install the Python dependencies defined in pyproject.toml +# Use pip to install the Python bindings RUN pip3 install ./bindings/python # Set the entrypoint to bash for interactive sessions