Skip to content

Commit

Permalink
Use my action
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanx749 committed Nov 14, 2023
1 parent 83f6b39 commit 7f138b9
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 92 deletions.
32 changes: 6 additions & 26 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,7 @@ on:
push:

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: |
python -m pip install -U pip
pip install -e .[doc]
- name: Build HTML
run: make html
working-directory: docs
- name: Upload artifacts
uses: actions/upload-pages-artifact@v2
with:
path: docs/_build/html/

deploy:
needs: build
build-deploy:
permissions:
pages: write
id-token: write
Expand All @@ -36,6 +14,8 @@ jobs:
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
- id: deployment
uses: yuanx749/auto-sphinx-page-action@main
with:
sourcedir: docs
requirements: docs/requirements.txt
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
docs/generated
.vscode

# Byte-compiled / optimized / DLL files
__pycache__/
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ Install from source after git clone:

```bash
cd py-cdhit
pip install -e '.[dev,doc]'
pip install -e '.[dev]'
pip install -r docs/requirements.txt
python -m pytest --cov-report term-missing --cov=pycdhit tests/
```
20 changes: 0 additions & 20 deletions docs/Makefile

This file was deleted.

1 change: 0 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

html_theme = "furo"
html_title = project
html_static_path = ["_static"]

autodoc_default_options = {
"member-order": "bysource",
Expand Down
35 changes: 0 additions & 35 deletions docs/make.bat

This file was deleted.

5 changes: 5 additions & 0 deletions docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
sphinx==7.2.6
furo==2023.9.10
myst-nb==1.0.0
myst-parser==2.0.0
sphinx-copybutton==0.5.2
2 changes: 1 addition & 1 deletion pycdhit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from ._commands import * # noqa: F403
from ._io import * # noqa: F403

VERSION = "0.6.0"
VERSION = "0.7.0"

__all__ = [ # noqa: F405
"CommandBase",
Expand Down
7 changes: 0 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,6 @@ dev = [
"isort==5.12.0",
"pytest>=7.0.0",
"pytest-cov>=4.0.0",
]
doc = [
"sphinx==7.2.6",
"furo==2023.9.10",
"myst-nb==1.0.0",
"myst-parser==2.0.0",
"sphinx-copybutton==0.5.2",
"notebook>=6.5.4",
]

Expand Down

0 comments on commit 7f138b9

Please sign in to comment.