Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Add xdoctest CI #199

Merged
merged 14 commits into from
Jun 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install paddlepaddle==0.0.0 -f https://www.paddlepaddle.org.cn/whl/linux/cpu-mkl/develop.html
pip install -r requirements.txt
pip install -e ".[dev]"

- name: Run unit tests
working-directory: ./tests/
Expand All @@ -38,3 +38,8 @@ jobs:
working-directory: ./examples/
run: |
bash run_all.sh

- name: Run xdoctest
working-directory: ./
run: |
xdoctest sot
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
repos:
# Common hooks
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
rev: v4.4.0
hooks:
- id: check-added-large-files
- id: check-merge-conflict
Expand All @@ -11,7 +11,7 @@ repos:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/Lucas-C/pre-commit-hooks.git
rev: v1.1.14
rev: v1.5.1
hooks:
- id: remove-crlf
- id: remove-tabs
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ classifiers = [
"Operating System :: OS Independent",
]

[project.optional-dependencies]
dev = [
"xdoctest"
]

[tool.setuptools]
packages = ["sot"]

Expand Down
Empty file removed requirements.txt
Empty file.