Skip to content

Commit 4aedc26

Browse files
Merge branch 'mk14' into develop
2 parents 0cfcf4f + 7795a62 commit 4aedc26

File tree

143 files changed

+32401
-13565
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

143 files changed

+32401
-13565
lines changed

.github/workflows/ci-dev.yml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -15,48 +15,37 @@ jobs:
1515
fail-fast: false
1616
matrix:
1717
os: [ubuntu-latest, macos-latest]
18-
python-version: [3.11]
18+
python-version: [3.8]
1919

2020
steps:
21-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@v2
2222

2323
- name: Install Linux dependencies
2424
if: runner.os == 'Linux'
25-
run: |
26-
sudo apt-get install libopenblas-dev gcc-9 g++-9
25+
run: sudo apt-get install libopenblas-dev
2726

2827
- name: Install macOS Dependencies
2928
shell: bash -l {0}
3029
if: runner.os == 'macOS'
3130
run: |
3231
brew tap sfarrens/sf
3332
brew install bigmac libomp
34-
brew reinstall gcc
3533
3634
- name: Set up conda
37-
uses: conda-incubator/setup-miniconda@v3
35+
uses: conda-incubator/setup-miniconda@v2
3836
with:
3937
auto-update-conda: true
4038
python-version: ${{ matrix.python-version }}
4139
auto-activate-base: true
42-
miniforge-version: latest
43-
44-
- name: Install package (Linux)
45-
shell: bash -l {0}
46-
env:
47-
CC: gcc-9
48-
CXX: g++-9
49-
if: runner.os == 'Linux'
50-
run: ./install_shapepipe --env-dev
5140

52-
- name: Install package (macOS)
41+
- name: Install package
5342
shell: bash -l {0}
54-
if: runner.os == 'macOS'
55-
run: ./install_shapepipe --env-dev
43+
run: |
44+
./install_shapepipe --env-dev --develop
5645
5746
- name: Run tests
5847
shell: bash -l {0}
5948
run: |
6049
conda activate shapepipe-dev
61-
pytest
50+
python setup.py test
6251
shapepipe_run -c example/config.ini

.github/workflows/deploy-image.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Create and publish a Docker image
2+
3+
on:
4+
push:
5+
branches: ['master']
6+
7+
env:
8+
REGISTRY: ghcr.io
9+
IMAGE_NAME: ${{ github.repository }}
10+
11+
jobs:
12+
build-and-push-image:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
packages: write
17+
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v3
21+
22+
- name: Log in to the Container registry
23+
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
24+
with:
25+
registry: ${{ env.REGISTRY }}
26+
username: ${{ github.actor }}
27+
password: ${{ secrets.GITHUB_TOKEN }}
28+
29+
- name: Extract metadata (tags, labels) for Docker
30+
id: meta
31+
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
32+
with:
33+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
34+
35+
- name: Build and push Docker image
36+
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
37+
with:
38+
context: .
39+
push: true
40+
tags: ${{ steps.meta.outputs.tags }}
41+
labels: ${{ steps.meta.outputs.labels }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,3 +133,4 @@ dmypy.json
133133
# Ignore example output
134134
*shapepipe_run_*
135135
*shapepipe_runs*
136+
code

Dockerfile

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
FROM continuumio/miniconda3
2+
3+
LABEL Description="ShapePipe Docker Image"
4+
ENV SHELL /bin/bash
5+
6+
ARG CC=gcc-9
7+
ARG CXX=g++-9
8+
9+
# gcc < 10 is required to compile ww
10+
ENV CC=gcc-9
11+
ENV CXX=g++-9
12+
13+
RUN apt-get update --allow-releaseinfo-change && \
14+
apt-get update && \
15+
apt-get upgrade -y && \
16+
apt-get install apt-utils -y && \
17+
apt-get install make -y && \
18+
apt-get install automake -y && \
19+
apt-get install autoconf -y && \
20+
apt-get install gcc-9 g++-9 -y && \
21+
apt-get install gfortran -y && \
22+
apt-get install locales -y && \
23+
apt-get install libgl1-mesa-glx -y && \
24+
apt-get install xterm -y && \
25+
apt-get install cmake protobuf-compiler -y && \
26+
apt-get install libtool libtool-bin libtool-doc -y && \
27+
apt-get install libfftw3-bin libfftw3-dev -y && \
28+
apt-get install libatlas-base-dev liblapack-dev libblas-dev -y && \
29+
apt-get install vim -y && \
30+
apt-get install locate -y && \
31+
apt-get install curl -y && \
32+
apt-get install acl -y && \
33+
apt-get install sssd -y && \
34+
apt-get clean
35+
36+
ADD nsswitch.conf /etc/
37+
38+
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \
39+
locale-gen
40+
ENV LANG en_US.UTF-8
41+
ENV LANGUAGE en_US:en
42+
ENV LC_ALL en_US.UTF-8
43+
44+
SHELL ["/bin/bash", "--login", "-c"]
45+
46+
COPY ./environment.yml ./
47+
COPY install_shapepipe README.rst setup.py setup.cfg ./
48+
RUN touch ./README.md
49+
50+
RUN conda update -n base -c defaults conda -c defaults
51+
RUN conda env create --file environment.yml
52+
53+
COPY shapepipe ./shapepipe
54+
COPY scripts ./scripts
55+
56+
RUN source activate shapepipe
57+
#RUN pip install jupyter
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
299.183
2+
300.183
3+
301.183
4+
299.184
5+
300.184
6+
301.184
7+
299.185
8+
300.185
9+
301.185

0 commit comments

Comments
 (0)