Skip to content

Commit 909e7f5

Browse files
authored
Merge pull request #24 from turbomam/23-make-a-cumulative-branch
make a cumulative branch for repo cleanup and build process streamlining
2 parents 3a14409 + 10e2e08 commit 909e7f5

File tree

666 files changed

+76597
-553094
lines changed

Some content is hidden

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

666 files changed

+76597
-553094
lines changed

.github/workflows/deploy-docs.yaml

Lines changed: 30 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,49 @@
1-
---
2-
name: Auto-deployment of mixs Documentation
1+
name: Deploy documentation to GitHub Pages
2+
33
on:
44
push:
55
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: write
10+
pages: write
11+
id-token: write
12+
13+
concurrency: deploy-${{ github.ref }}
614

715
jobs:
8-
build-docs:
16+
deploy:
917
runs-on: ubuntu-latest
18+
1019
steps:
1120
- name: Checkout
1221
uses: actions/checkout@v4
1322
with:
14-
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo
23+
fetch-depth: 0
1524

16-
- name: Set up Python 3.
17-
uses: actions/setup-python@v4
25+
- name: Set up Python
26+
uses: actions/setup-python@v5
1827
with:
19-
python-version: 3.9
20-
21-
- name: Install Poetry.
22-
uses: snok/[email protected]
28+
python-version: '3.10'
2329

24-
- name: Install dependencies.
25-
run: poetry install -E docs
30+
- name: Install Poetry
31+
uses: snok/install-poetry@v1
2632

27-
- name: Setup Node.js
28-
uses: actions/setup-node@v2
29-
with:
30-
node-version: '14' # Choose the desired Node.js version
31-
32-
- name: Add Node.js to the system path
33-
run: |
34-
echo 'export PATH=$HOME/.npm-global/bin:$PATH' >> $GITHUB_ENV
33+
- name: Install dependencies
34+
run: make install
3535

36-
- name: Build documentation.
36+
- name: Generate documentation
3737
run: |
38+
make clean
3839
mkdir -p docs
3940
touch docs/.nojekyll
4041
make gendoc
41-
([ ! -f docs/about.md ] && cp src/docs/about.md docs/) || true
42-
poetry run mkdocs build --clean
43-
make mkd-gh-deploy
42+
poetry run mkdocs build -d site
43+
44+
- name: Deploy to GitHub Pages
45+
uses: peaceiris/actions-gh-pages@v3
46+
with:
47+
github_token: ${{ secrets.GITHUB_TOKEN }}
48+
publish_dir: ./site
49+
publish_branch: gh-pages

.github/workflows/lint-linkml.yml renamed to .github/workflows/lint-linkml.yaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,27 +15,25 @@ jobs:
1515
name: LinkML Linting
1616
runs-on: ubuntu-latest
1717
steps:
18-
- name: Check out repository
18+
- name: Checkout
1919
uses: actions/checkout@v4
2020

2121
# Fixed: Specify exact Python version instead of using undefined matrix variable
22-
- name: Set up Python 3.11
22+
- name: Set up Python 3.10
2323
uses: actions/setup-python@v5
2424
with:
25-
python-version: '3.11'
26-
# Removed cache here since Poetry isn't installed yet
25+
python-version: '3.10'
2726

28-
# Install Poetry first before trying to use it
2927
- name: Install Poetry
30-
run: pipx install poetry
28+
uses: snok/install-poetry@v1
3129

3230
# Now we can configure Poetry cache
3331
- name: Configure Poetry cache
3432
run: poetry config cache-dir ~/.cache/poetry
3533

36-
# Install dependencies with Poetry
34+
# Install dependencies using Makefile
3735
- name: Install dependencies
38-
run: poetry install --no-interaction --no-root
36+
run: make install
3937

4038
# Run the LinkML linting command
4139
- name: Run LinkML Linting

.github/workflows/lint-yaml.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
name: Yamllint GitHub Action
33

44
on:
5-
- pull_request
5+
pull_request:
6+
workflow_dispatch:
67

78
jobs:
89
yamllint:

.github/workflows/main.yaml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,34 +4,30 @@
44
---
55
name: Build and test mixs
66

7-
on: [pull_request]
7+
on:
8+
pull_request:
9+
workflow_dispatch:
810

911
jobs:
1012
test:
1113

1214
runs-on: ubuntu-latest
1315
strategy:
1416
matrix:
15-
python-version: ["3.9", "3.10"]
17+
python-version: ["3.10"]
1618

1719
steps:
1820

19-
- name: Check out repository
21+
- name: Checkout
2022
uses: actions/checkout@v4
2123

2224
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v4
25+
uses: actions/setup-python@v5
2426
with:
2527
python-version: ${{ matrix.python-version }}
2628

2729
- name: Install Poetry
28-
uses: snok/install-poetry@v1.3
30+
uses: snok/install-poetry@v1
2931

30-
- name: Install dependencies
31-
run: poetry install --no-interaction --no-root
32-
33-
- name: Install project
34-
run: poetry install --no-interaction
35-
36-
- name: Run test suite
37-
run: make test
32+
- name: Run release SOP
33+
run: make install clean all all-contrib test

.github/workflows/pypi-publish.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ name: Publish Python Package
44
on:
55
release:
66
types: [created]
7+
workflow_dispatch:
78

89
jobs:
910
build-n-publish:
@@ -14,18 +15,18 @@ jobs:
1415
- uses: actions/checkout@v4
1516

1617
- name: Set up Python
17-
uses: actions/setup-python@v4
18+
uses: actions/setup-python@v5
1819
with:
19-
python-version: 3.9
20+
python-version: '3.10'
2021

2122
- name: Install Poetry
22-
run: |
23-
pip install poetry
24-
poetry self add "poetry-dynamic-versioning[plugin]"
25-
# uses: snok/[email protected]
26-
# with:
27-
# virtualenvs-create: true
28-
# virtualenvs-in-project: true
23+
uses: snok/install-poetry@v1
24+
with:
25+
virtualenvs-create: true
26+
virtualenvs-in-project: true
27+
28+
- name: Add poetry-dynamic-versioning plugin
29+
run: poetry self add "poetry-dynamic-versioning[plugin]"
2930

3031
# - name: Install dependencies
3132
# run: poetry install --no-interaction

.github/workflows/test_pages_build.yaml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,31 +6,36 @@ on:
66
- opened
77
- reopened
88
- synchronize
9+
workflow_dispatch:
910

1011
concurrency: preview-${{ github.ref }}
1112

1213
jobs:
1314
run:
1415
runs-on: ubuntu-latest
16+
permissions:
17+
contents: write
18+
pull-requests: write
1519
steps:
1620
- name: Checkout
1721
uses: actions/checkout@v4
1822
with:
1923
fetch-depth: 0
2024

21-
- name: Install Poetry
22-
run: pipx install poetry
23-
2425
- name: Set up Python 3
25-
uses: actions/setup-python@v4
26+
uses: actions/setup-python@v5
2627
with:
27-
python-version: 3.9
28+
python-version: '3.10'
29+
30+
- name: Install Poetry
31+
uses: snok/install-poetry@v1
2832

2933
- name: Install dependencies
30-
run: poetry install
34+
run: make install
3135

3236
- name: Generate web-based documentation
3337
run: |
38+
make clean
3439
mkdir -p docs
3540
touch docs/.nojekyll
3641
make gendoc

.gitignore

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,20 @@ dmypy.json
135135
# Pyre type checker
136136
.pyre/
137137

138-
# Excel files dumped in project/excel
138+
# Project-specific generated files
139+
/docs/
140+
/project/docs/
141+
/tmp/
139142
project/excel
143+
/site
144+
linting-results*
140145

141-
.DS_Store
146+
# Local development files
147+
/local/*
148+
!/local/.gitkeep
142149

150+
# IDE files
143151
.vscode/
144-
linting-results*
152+
153+
# OS files
154+
.DS_Store

.linkmllint.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,22 @@ rules:
44
level: error
55
exclude_type:
66
- enum_definition
7+
exclude:
8+
- combination_classes
9+
- sequencing
10+
- environment
11+
- nucleic acid sequence source
12+
- investigation
713
standard_naming:
814
level: error
915
exclude_type:
1016
- permissible_value
17+
exclude:
18+
- HACCP_term
19+
- IFSAC_category
20+
- air_PM_concen
21+
- ferm_pH
22+
- microb_start_taxID
23+
- soil_pH
24+
- spikein_AMR
25+
- water_pH

0 commit comments

Comments
 (0)