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
10 changes: 7 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -26,4 +27,7 @@ jobs:

- name: Check ForeFire version inside Docker
run: |
docker run --rm forefire:latest forefire -v
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"
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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
Expand Down