Skip to content

Commit d744f2a

Browse files
authored
Merge pull request #343 from NMRLipids/restructure
Restructering the repo
2 parents 35e0172 + 5e19b0e commit d744f2a

197 files changed

Lines changed: 1852 additions & 1402 deletions

File tree

Some content is hidden

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

.codecov.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
coverage:
2+
ignore:
3+
- tests/.*
4+
status:
5+
project:
6+
default:
7+
target: 60%
8+
patch:
9+
default:
10+
target: 60%
11+
12+
comment: false

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: monthly
7+
open-pull-requests-limit: 1
8+
groups:
9+
action-dependencies:
10+
patterns:
11+
- "*" # A wildcard to create one PR for all dependencies in the ecosystem

.github/workflows/BuildDocumentation.yml

Lines changed: 0 additions & 69 deletions
This file was deleted.

.github/workflows/RunTests.yml

Lines changed: 0 additions & 33 deletions
This file was deleted.

.github/workflows/ScheduledTests.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.
Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Build gromacs image
3131
run: |
3232
docker build \
33-
-f Scripts/Docker/gromacs \
33+
-f developer/docker/gromacs \
3434
-t nmrlipids/gromacs \
3535
--build-arg GROMACS_VERSION=${{ steps.version.outputs.version }} \
3636
.
@@ -40,27 +40,8 @@ jobs:
4040
4141
- name: Build core image
4242
run: |
43-
docker build -f Scripts/Docker/core -t nmrlipids/core .
43+
docker build -f developer/docker/core -t nmrlipids/core .
4444
4545
- name: Push core image
4646
run: docker push nmrlipids/core
4747

48-
build_doc_builder:
49-
runs-on: ubuntu-latest
50-
if: github.repository == 'NMRLipids/Databank'
51-
steps:
52-
- name: Log in to Docker Hub
53-
uses: docker/login-action@v3
54-
with:
55-
username: ${{ vars.DOCKERHUB_USERNAME }}
56-
password: ${{ secrets.DOCKERHUB_PASSWORD }}
57-
58-
- name: Checkout Databank repo
59-
uses: actions/checkout@v4
60-
61-
- name: Build doc-builder image
62-
run: |
63-
docker build -f Scripts/Docker/doc-builder -t nmrlipids/doc-builder .
64-
65-
- name: Push doc-builder image
66-
run: docker push nmrlipids/doc-builder

.github/workflows/build.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# This workflow builds and checks the package for release
2+
name: Build
3+
4+
on:
5+
pull_request:
6+
# Check all PR
7+
8+
jobs:
9+
build:
10+
if: github.repository == 'NMRLipids/Databank'
11+
runs-on: ubuntu-22.04
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: "3.13"
19+
- run: pip install tox
20+
21+
- name: Test build integrity
22+
run: tox -e build

.github/workflows/docs.yml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
name: Documentation
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches: [main]
7+
tags: ["*"]
8+
pull_request_target:
9+
branches: [main]
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
build:
16+
if: github.repository == 'NMRlipids/Databank'
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout source
21+
uses: actions/checkout@v5
22+
with:
23+
fetch-depth: 0
24+
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
25+
ref: ${{ github.event.pull_request.head.sha || github.ref }}
26+
persist-credentials: false
27+
28+
- name: Setup Python
29+
uses: actions/setup-python@v5
30+
with:
31+
python-version: "3.13"
32+
check-latest: true
33+
34+
- name: Install build deps
35+
run: python -m pip install tox gitpython
36+
37+
- name: Build documentation
38+
run: tox -e docs
39+
40+
- name: Upload site artifact
41+
uses: actions/upload-artifact@v4
42+
with:
43+
name: site
44+
path: docs/build/html
45+
if-no-files-found: error
46+
47+
deploy:
48+
if: github.event_name == 'push' && github.repository == 'NMRlipids/Databank'
49+
needs: build
50+
runs-on: ubuntu-latest
51+
permissions:
52+
contents: write
53+
54+
steps:
55+
- name: Download site artifact
56+
uses: actions/download-artifact@v4
57+
with:
58+
name: site
59+
path: ./public
60+
61+
- name: Determine doc kind (latest|stable)
62+
run: |
63+
REF_KIND=$(echo "$GITHUB_REF" | cut -d/ -f2)
64+
if [ "$REF_KIND" = "tags" ]; then
65+
echo "DOC_KIND=stable" >> $GITHUB_ENV
66+
else
67+
echo "DOC_KIND=latest" >> $GITHUB_ENV
68+
fi
69+
70+
- name: Publish to gh-pages/$DOC_KIND
71+
uses: peaceiris/actions-gh-pages@v4
72+
with:
73+
github_token: ${{ secrets.GITHUB_TOKEN }}
74+
publish_dir: ./public
75+
destination_dir: ${{ env.DOC_KIND }}

.github/workflows/lint.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Lint
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
jobs:
8+
lint:
9+
if: github.repository == 'NMRLipids/Databank'
10+
runs-on: ubuntu-22.04
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: "3.13"
19+
- run: pip install tox
20+
21+
- name: Lint the code
22+
run: tox -e lint
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Read the Docs link
2+
3+
on:
4+
pull_request_target:
5+
types:
6+
- opened
7+
8+
permissions:
9+
pull-requests: write
10+
11+
jobs:
12+
documentation-links:
13+
if: github.repository == 'NMRLipids/Databank'
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: readthedocs/actions/preview@v1
17+
with:
18+
project-slug: Databank

0 commit comments

Comments
 (0)