Skip to content

Commit

Permalink
Merge pull request #35 from e10harvey/docs_check
Browse files Browse the repository at this point in the history
.github/workflows: Add docs_check.yml
  • Loading branch information
e10harvey authored Mar 20, 2024
2 parents 92361ce + 355e4ac commit e45f1e4
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .github/workflows/docs_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: github-DOCS

on:
push
#pull_request:
# paths-ignore:
# - '**/*.rst'
# - '**/*.md'
# - 'doc/**'
# types: [ opened, reopened, synchronize ]

permissions:
contents: none

# Cancels any in progress 'workflow' associated with this PR
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
docs-check:
name: docs-check
runs-on: [ubuntu-latest]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: OpenCSP
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Sphinx docs check
run: |
cd OpenCSP
pip install -r requirements.txt
cd doc
pip install -r requirements.txt
./make_docs.sh
4 changes: 3 additions & 1 deletion doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

## Install requirements in virtual environment
```bash
(venv) $ cd /path/to/OpenCSP/doc
(venv) $ cd /path/to/OpenCSP
(venv) $ pip install -r requirements.txt
(venv) $ cd doc
(venv) $ pip install -r requirements.txt
```

Expand Down

0 comments on commit e45f1e4

Please sign in to comment.