File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ The `did` library provides a framework for managing and querying data that is or
4444To run the test suite, use the following command:
4545
4646` ` ` bash
47- python -m unittest discover tests
47+ pytest
4848` ` `
4949
5050This will discover and run all the tests in the ` tests` directory.
Original file line number Diff line number Diff line change 1+ # API Reference
2+
3+ Coming soon.
Original file line number Diff line number Diff line change 11site_name : DID-Python
2+ theme :
3+ name : material
24nav :
35 - Home : index.md
46 - API Reference : api.md
Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ dev = [
2424 " mkdocs" ,
2525 " mkdocs-material" ,
2626 " mkdocstrings[python]" ,
27+ " pytest" ,
2728]
2829
2930[tool .setuptools ]
You can’t perform that action at this time.
0 commit comments