Skip to content

Commit

Permalink
upd docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kisnikser committed Nov 30, 2024
1 parent 57127be commit ab63a71
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 21 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,29 @@ jobs:

strategy:
matrix:
python-version: [3.11]
python-version: [3.10]

steps:
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.11

- name: Checkout 🛎️
uses: actions/checkout@v2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Install Dependencies
run: |
pip install mdToRst
pip install -U sphinx
pip install -U sphinx-rtd-theme
pip install -U myst_parser
pip install torch
pip install pyro-ppl
ls ./
mdToRst README.md | tee README.rst
pip install git+https://github.com/intsystems/discrete-variables-relaxation
- name: Build Docs
run: |
sphinx-build -b html ./docs/ public
sphinx-build -b html docs public
touch public/.nojekyll
- name: Deploy 🚀
Expand Down
19 changes: 8 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,16 @@ on: [push, pull_request, workflow_dispatch]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: [3.7]

runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.7

- name: Checkout 🛎️
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install Dependencies
run: |
Expand All @@ -29,6 +25,7 @@ jobs:
- name: Testing
run: |
PYTHONPATH=src/ pytest tests/ --cov=relaxit --cov-report=xml
- name: Generate coverage badge
run: |
python src/badge_generator.py
Expand Down
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"sphinx.ext.autosummary",
"sphinx.ext.mathjax",
"sphinx_rtd_theme",
"myst_parser"
]

autodoc_mock_imports = ["numpy", "scipy", "sklearn"]
Expand Down

0 comments on commit ab63a71

Please sign in to comment.