Skip to content

Commit 4efb888

Browse files
Merge pull request #14 from VH-Lab/update-readme-2286328433372700681
Setup CI/CD and documentation
2 parents dd3819c + 83dfaf1 commit 4efb888

6 files changed

Lines changed: 37 additions & 3 deletions

File tree

‎.github/workflows/docs.yml‎

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

‎.github/workflows/python-package.yml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,13 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v4
2020
- name: Set up Python ${{ matrix.python-version }}
21-
uses: actions/setup-python@v3
21+
uses: actions/setup-python@v5
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424
- name: Install dependencies
2525
run: |
2626
python -m pip install --upgrade pip
2727
pip install -e ".[dev]"
28-
pip install pytest
2928
- name: Test with pytest
3029
run: |
3130
pytest

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The `did` library provides a framework for managing and querying data that is or
4444
To run the test suite, use the following command:
4545

4646
```bash
47-
python -m unittest discover tests
47+
pytest
4848
```
4949

5050
This will discover and run all the tests in the `tests` directory.

‎docs/api.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# API Reference
2+
3+
Coming soon.

‎mkdocs.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
site_name: DID-Python
2+
theme:
3+
name: material
24
nav:
35
- Home: index.md
46
- API Reference: api.md

‎pyproject.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ dev = [
2424
"mkdocs",
2525
"mkdocs-material",
2626
"mkdocstrings[python]",
27+
"pytest",
2728
]
2829

2930
[tool.setuptools]

0 commit comments

Comments
 (0)