Skip to content

Commit fb42162

Browse files
authored
Version 2.8.0
Version 2.8.0
2 parents cf5fba6 + 2d01965 commit fb42162

File tree

20 files changed

+4815
-4597
lines changed

20 files changed

+4815
-4597
lines changed

.github/workflows/docker_tests.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Docker
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
workflow_dispatch:
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
docker-build-and-test:
16+
name: Build and Test - ${{ matrix.dockerfile }}
17+
runs-on: ubuntu-latest
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
os: [ubuntu-latest]
22+
dockerfile:
23+
- Dockerfile
24+
build_type: [Release, Debug]
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v4
28+
with:
29+
submodules: recursive
30+
31+
- name: Delete huge unnecessary tools folder
32+
run: rm -rf /opt/hostedtoolcache
33+
34+
- name: Build Docker image
35+
run: docker build -t music-box -f docker/${{ matrix.dockerfile }} . --build-arg MUSIC_BOX_GIT_TAG=${{ github.sha }} --build-arg BUILD_TYPE=${{ matrix.build_type }}
36+
37+
- name: Run tests in container
38+
run: docker run --name test-container -t music-box

docker/Dockerfile

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
FROM fedora:latest
2+
3+
ARG MUSIC_BOX_TAG=main
4+
ARG MUSICA_TAG=v0.11.1
5+
6+
RUN dnf -y update \
7+
&& dnf -y install \
8+
cmake \
9+
gcc-c++ \
10+
gcc-fortran \
11+
gdb \
12+
git \
13+
make \
14+
netcdf-fortran-devel \
15+
python3 \
16+
python3-devel \
17+
python3-pip \
18+
python3-setuptools \
19+
&& dnf clean all
20+
21+
COPY . /music-box/
22+
23+
ENV CXX=g++
24+
ENV CC=gcc
25+
ENV FC=gfortran
26+
27+
RUN git clone https://github.com/NCAR/musica.git /musica \
28+
&& cd /musica \
29+
&& git checkout $MUSICA_TAG
30+
31+
RUN cd /musica && pip3 install .
32+
33+
RUN cd /musica \
34+
&& pip3 install --verbose .[test] pytest-mock
35+
36+
RUN cd /music-box \
37+
&& pip3 install --verbose .[test] pytest-mock
38+
39+
WORKDIR /music-box
40+
CMD ["pytest"]

docker/Dockerfile.docs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ FROM fedora:37
33
RUN dnf -y update \
44
&& dnf -y install \
55
git \
6+
gcc \
7+
gcc-c++ \
68
make \
7-
python3 \
9+
python3-devel \
810
python3-pip \
911
&& dnf clean all
1012

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ classifiers = ["License :: OSI Approved :: Apache Software License"]
2121
dynamic = ["version", "description"]
2222

2323
dependencies = [
24-
"musica==0.10.1",
24+
"musica==0.11.1",
2525
"xarray",
2626
"colorlog",
2727
"pandas",

sample_waccm_data/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ for root, _, files in os.walk('data'):
2222
ds_sel.to_netcdf(f'sample_waccm_data/{file}')
2323
```
2424

25-
You can extract a coniguraiton file with
25+
You can extract a configuration file with
2626

2727
```
2828
waccmToMusicBox waccmDir="./sample_waccm_data" date="20240904" time="07:00" latitude=3.1 longitude=101.7
29-
```
29+
```

src/acom_music_box/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
This package contains modules for handling various aspects of a music box,
55
including species, products, reactants, reactions, and more.
66
"""
7-
__version__ = "2.7.0"
7+
__version__ = "2.8.0"
88

99
from .utils import convert_time, convert_pressure, convert_temperature, convert_concentration
1010
from .model_options import BoxModelOptions

0 commit comments

Comments
 (0)