Skip to content

Commit dd6c00d

Browse files
author
Löffler, Hannes
committed
Release 0.7.1
0 parents  commit dd6c00d

File tree

290 files changed

+446174
-0
lines changed

Some content is hidden

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

290 files changed

+446174
-0
lines changed

.github/pull_request_template.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
### Description
2+
3+
### Checklist
4+
If you're providing a new node for maize, please make sure of the following:
5+
- [ ] My node has been placed in an appropriate subfolder, and exposed in the corresponding `__init__.py` file
6+
- [ ] My node has tests (using `TestRig`, and testing a variety of inputs and parameters)
7+
- [ ] My node is fully documented using [ReST syntax](https://www.sphinx-doc.org/en/master/usage/restructuredtext/basics.html) and references if neccessary
8+
- [ ] My code passes type-checking using `mypy --strict --explicit-package-bases`
9+
- [ ] My code lints correctly
10+
- [ ] My code has been formatted with `black`, using a `line-length` of 100

.github/workflows/mypy.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Mypy
2+
3+
on: [push, workflow_dispatch]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version: ["3.10"]
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Set up Python ${{ matrix.python-version }}
14+
uses: actions/setup-python@v3
15+
with:
16+
python-version: ${{ matrix.python-version }}
17+
- name: Install dependencies
18+
run: |
19+
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh |
20+
bash -s -- --batch
21+
conda env create -f env-dev.yml
22+
conda run --name maize-dev pip install --no-deps .
23+
conda run --name maize-dev pip install types-PyYAML types-toml
24+
- name: Analysing the code with mypy
25+
run: |
26+
conda run --name maize-dev mypy --strict --explicit-package-bases maize/steps maize/utilities

.github/workflows/pylint.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Pylint
2+
3+
on: [push, workflow_dispatch]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version: ["3.10"]
11+
steps:
12+
- uses: actions/checkout@v3
13+
- name: Set up Python ${{ matrix.python-version }}
14+
uses: actions/setup-python@v3
15+
with:
16+
python-version: ${{ matrix.python-version }}
17+
- name: Install dependencies
18+
run: |
19+
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh |
20+
bash -s -- --batch
21+
conda env create -f env-dev.yml
22+
conda run --name maize-dev pip install --no-deps .
23+
- name: Analysing the code with pylint
24+
run: |
25+
conda run --name maize-dev pylint --exit-zero maize/steps maize/utilities

.github/workflows/singularity.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: singularity
2+
on:
3+
push:
4+
5+
# Edit the branches here if you want to change deploy behavior
6+
branches:
7+
- main
8+
- master
9+
10+
# Do the builds on all pull requests (to test them)
11+
pull_request: []
12+
13+
jobs:
14+
build-test-containers:
15+
runs-on: ubuntu-latest
16+
strategy:
17+
# Keep going on other deployments if anything bloops
18+
fail-fast: false
19+
matrix:
20+
changed_file:
21+
- devtools/singularity.def
22+
singularity_version:
23+
- '3.8.1'
24+
25+
container:
26+
image: quay.io/singularity/singularity:v${{ matrix.singularity_version }}
27+
options: --privileged
28+
29+
name: check
30+
steps:
31+
32+
- name: Check out code for the container builds
33+
uses: actions/checkout@v2
34+
35+
- name: Continue if Singularity Recipe
36+
run: |
37+
# Continue if we have a changed Singularity recipe
38+
if [[ "${{ matrix.changed_file }}" = *Singularity* ]]; then
39+
echo "keepgoing=true" >> $GITHUB_ENV
40+
fi
41+
42+
- name: Build Container
43+
if: ${{ env.keepgoing == 'true' }}
44+
env:
45+
recipe: ${{ matrix.changed_file }}
46+
run: |
47+
ls
48+
sudo -E singularity build maize.sif devtools/singularity.def
49+
tag=$(echo "${recipe/Singularity\./}")
50+
if [ "$tag" == "Singularity" ]; then
51+
tag=latest
52+
fi
53+
# Build the container and name by tag
54+
echo "Tag is $tag."
55+
echo "tag=$tag" >> $GITHUB_ENV
56+
57+
- name: Login and Deploy Container
58+
if: (github.event_name != 'pull_request')
59+
env:
60+
keepgoing: ${{ env.keepgoing }}
61+
run: |
62+
if [[ "${keepgoing}" == "true" ]]; then
63+
echo ${{ secrets.GITHUB_TOKEN }} | singularity remote login -u ${{ secrets.GHCR_USERNAME }} --password-stdin oras://ghcr.io
64+
singularity push maize.sif oras://ghcr.io/${GITHUB_REPOSITORY}:${tag}
65+
fi

.github/workflows/sonar-scan.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: sonarqube
2+
on: [push, workflow_dispatch]
3+
4+
jobs:
5+
sonar_setup:
6+
uses: azu-enterprise/action-sonar-auto-enrol/.github/workflows/sonar-auto-enrol.yml@main
7+
with:
8+
project_key: ${{ github.event.repository.name }}
9+
sonarqube_url: "https://sonarqube.astrazeneca.com"
10+
secrets:
11+
sq_token: ${{ secrets.SQ_TOKEN }}

.github/workflows/test-docking.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
3+
4+
name: Test-docking
5+
6+
on:
7+
push:
8+
branches: [ "master" ]
9+
pull_request:
10+
branches: [ "master" ]
11+
workflow_dispatch:
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
build:
18+
runs-on: ubuntu-latest
19+
strategy:
20+
matrix:
21+
python-version: ["3.10"]
22+
steps:
23+
- uses: actions/checkout@v3
24+
- name: Set up Python ${{ matrix.python-version }}
25+
uses: actions/setup-python@v3
26+
with:
27+
python-version: ${{ matrix.python-version }}
28+
- name: Install dependencies
29+
run: |
30+
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh |
31+
bash -s -- --batch
32+
conda env create -v -f env-dev.yml
33+
conda run --name maize-dev pip install --no-deps .
34+
conda run --name maize-dev ./devtools/install_test_deps.sh
35+
- name: Run docking test with pytest
36+
run: |
37+
conda run --name maize-dev pytest tests/test_docking.py

.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
.ipynb_checkpoints
2+
.VSCodeCounter
3+
__pycache__
4+
*.egg-info
5+
.coverage
6+
.vscode
7+
.pylintrc
8+
.env
9+
.*_cache
10+
*_autosummary
11+
coverage
12+
docs/_build
13+
docs/_static
14+
docs/autosummary
15+
docs/Makefile
16+
docs/make.bat
17+
/test-config.toml
18+
test
19+
testing.ipynb
20+
deplicenses.txt
21+
build

.sonarlint/connectedMode.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"sonarQubeUri": "https://sonarqube.astrazeneca.com",
3+
"projectKey": "maize-contrib"
4+
}

AUTHORS.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Primary Authors
2+
===============
3+
- [Thomas Löhr](https://github.com/tlhr)
4+
- Marco Klähn
5+
6+
Contributing Authors
7+
====================
8+
- Michele Assante
9+
- Lili Cao
10+
- Michael Dodds
11+
- Jon Paul Janet
12+
- Mikhail Kabeshov
13+
- Alessandro Tibo

0 commit comments

Comments
 (0)