Skip to content

Commit 031b9a8

Browse files
Merge pull request #3 from VH-Lab/ci-docs-setup-13537202722892185221
Add CI/CD workflows and update docs config
2 parents c3b302a + 4aee6d3 commit 031b9a8

42 files changed

Lines changed: 62 additions & 5025 deletions

Some content is hidden

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

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.10", "3.11"]
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install .
28+
29+
- name: Run tests
30+
run: |
31+
python -m unittest discover -s tests

.github/workflows/deploy-docs.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Deploy Docs
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: 3.x
19+
- name: Install dependencies
20+
run: |
21+
pip install .
22+
- name: Configure Git User
23+
run: |
24+
git config user.name "github-actions[bot]"
25+
git config user.email "github-actions[bot]@users.noreply.github.com"
26+
- name: Deploy
27+
run: mkdocs gh-deploy --force

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,4 @@ example/binary_collections/*
7171

7272
# symlinked schema
7373
*/.ndi
74+
site/

DID-python

Lines changed: 0 additions & 1 deletion
This file was deleted.

NDI-compress-python

Lines changed: 0 additions & 1 deletion
This file was deleted.

NDI-matlab

Lines changed: 0 additions & 1 deletion
This file was deleted.

mkdocs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
site_name: NDI-python
2+
theme:
3+
name: material
24
nav:
35
- Home: index.md
46
- Cache: cache.md

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ classifiers = [
1919
dependencies = [
2020
"did @ git+https://github.com/VH-Lab/DID-python.git@main",
2121
"mkdocs",
22+
"mkdocs-material",
2223
"pandas",
2324
"requests",
2425
"ndi-compress @ git+https://github.com/Waltham-Data-Science/NDI-compress-python",

site/404.html

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

0 commit comments

Comments
 (0)