PyOptik 1.9.5.post0__tar.gz → 1.9.7__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pyoptik-1.9.7/.github/workflows/deploy_documentation.yml +121 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PKG-INFO +1 -1
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/_version.py +2 -2
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik.egg-info/PKG-INFO +1 -1
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik.egg-info/SOURCES.txt +2 -1
- pyoptik-1.9.7/docs/source/_static/thumbnail.png +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/docs/source/conf.py +23 -15
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/meta.yaml +2 -2
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/pyproject.toml +1 -1
- pyoptik-1.9.5.post0/.github/workflows/deploy_documentation.yml +0 -60
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/.flake8 +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/.github/dependabot.yml +0 -0
- /pyoptik-1.9.5.post0/.github/workflows/deploy_workflow.yml → /pyoptik-1.9.7/.github/workflows/deploy_PyPi.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/.github/workflows/deploy_anaconda.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/.github/workflows/deploy_coverage.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/.gitignore +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/.readthedocs.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/LICENSE +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/__init__.py +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/__main__.py +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/data/__init__.py +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/data/sellmeier/BAK1.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/data/sellmeier/BK7.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/data/sellmeier/SF5.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/data/sellmeier/ZBLAN.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/data/sellmeier/air.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/data/sellmeier/argon.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/data/sellmeier/crown.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/data/sellmeier/flint.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/data/sellmeier/fused_silica.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/data/sellmeier/germanium.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/data/sellmeier/lithium_niobate.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/data/sellmeier/polystyren.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/data/sellmeier/silicon.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/data/sellmeier/soda_lime_glass.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/data/sellmeier/water.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/data/tabulated/aluminium.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/data/tabulated/calcium.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/data/tabulated/copper.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/data/tabulated/gold.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/data/tabulated/iron.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/data/tabulated/nickel.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/data/tabulated/silver.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/data/tabulated/sodium.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/data/tabulated/zinc.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/directories.py +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/libraries/__init__.py +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/libraries/classics.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/libraries/dielectrics.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/libraries/metals.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/libraries/minimal.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/libraries/organics.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/libraries/others.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/libraries/polymers.yml +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/material/__init__.py +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/material/base_class.py +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/material/sellmeier_class.py +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/material/tabulated_class.py +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/material_bank.py +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/material_type.py +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/units.py +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik/utils.py +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik.egg-info/dependency_links.txt +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik.egg-info/requires.txt +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/PyOptik.egg-info/top_level.txt +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/README.rst +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/development/dev_0.py +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/docs/Makefile +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/docs/examples/README.rst +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/docs/examples/sellmeier/README.rst +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/docs/examples/sellmeier/plot_bk7.py +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/docs/examples/sellmeier/plot_silica.py +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/docs/examples/sellmeier/plot_water.py +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/docs/examples/tabulated/README.rst +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/docs/examples/tabulated/plot_sf5.py +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/docs/examples/tabulated/plot_silver.py +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/docs/examples/utils/README.rst +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/docs/examples/utils/build_library.py +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/docs/examples/utils/create_sellmeier_file.py +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/docs/examples/utils/create_tabulated_file.py +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/docs/examples/utils/download_yml_file.py +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/docs/images/example_bk7.png +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/docs/images/logo.png +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/docs/make.bat +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/docs/source/_static/default.css +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/docs/source/code.rst +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/docs/source/gallery/index.rst +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/docs/source/index.rst +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/docs/source/references.rst +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/setup.cfg +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/tests/__init__.py +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/tests/test_sellmeier.py +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/tests/test_tabulated.py +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/tests/test_usual_material.py +0 -0
- {pyoptik-1.9.5.post0 → pyoptik-1.9.7}/tests/test_utils.py +0 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
# .github/workflows/deploy_documentation.yml
|
|
2
|
+
name: Documentation
|
|
3
|
+
|
|
4
|
+
on:
|
|
5
|
+
push:
|
|
6
|
+
branches: [ "master" ]
|
|
7
|
+
tags:
|
|
8
|
+
- '*'
|
|
9
|
+
pull_request:
|
|
10
|
+
branches: [ "master" ]
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
documentation:
|
|
14
|
+
name: Run the documentation building tools
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
permissions:
|
|
17
|
+
pull-requests: write
|
|
18
|
+
contents: write
|
|
19
|
+
|
|
20
|
+
steps:
|
|
21
|
+
- name: "Set-up: Python 3.11"
|
|
22
|
+
uses: actions/setup-python@v5
|
|
23
|
+
id: cp311
|
|
24
|
+
with:
|
|
25
|
+
python-version: "3.11"
|
|
26
|
+
|
|
27
|
+
- name: "Install: Dependencies for headless server"
|
|
28
|
+
shell: bash
|
|
29
|
+
run: |
|
|
30
|
+
sudo apt-get update
|
|
31
|
+
sudo apt-get install xvfb
|
|
32
|
+
|
|
33
|
+
- name: "Checkout requirements and files for testing"
|
|
34
|
+
uses: actions/checkout@v4
|
|
35
|
+
with:
|
|
36
|
+
fetch-depth: 0
|
|
37
|
+
submodules: true
|
|
38
|
+
|
|
39
|
+
- name: Install everything, run the tests, produce the .coverage file
|
|
40
|
+
run: |
|
|
41
|
+
python -m pip install wheel build
|
|
42
|
+
python -m build --wheel
|
|
43
|
+
python -m pip install .[documentation]
|
|
44
|
+
|
|
45
|
+
- name: Install dependencies
|
|
46
|
+
run: |
|
|
47
|
+
pip install sphinx sphinx_rtd_theme myst_parser jq
|
|
48
|
+
|
|
49
|
+
- name: Get current tag
|
|
50
|
+
id: get_tag
|
|
51
|
+
run: |
|
|
52
|
+
git fetch --tags
|
|
53
|
+
echo "tag=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
|
|
54
|
+
|
|
55
|
+
- name: Sphinx build
|
|
56
|
+
run: |
|
|
57
|
+
sphinx-build docs/source _build
|
|
58
|
+
|
|
59
|
+
- name: "Deploy to documentation_page: specific version"
|
|
60
|
+
uses: peaceiris/actions-gh-pages@v3
|
|
61
|
+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
|
62
|
+
with:
|
|
63
|
+
publish_branch: documentation_page
|
|
64
|
+
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
65
|
+
publish_dir: _build/
|
|
66
|
+
destination_dir: "docs/${{ env.tag }}"
|
|
67
|
+
keep_files: true
|
|
68
|
+
|
|
69
|
+
update_version_switcher:
|
|
70
|
+
name: Update version_switcher.json
|
|
71
|
+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
|
72
|
+
runs-on: ubuntu-latest
|
|
73
|
+
needs: documentation # This job depends on the successful completion of the 'documentation' job
|
|
74
|
+
permissions:
|
|
75
|
+
contents: write
|
|
76
|
+
|
|
77
|
+
steps:
|
|
78
|
+
- name: "Checkout documentation_page branch"
|
|
79
|
+
uses: actions/checkout@v4
|
|
80
|
+
with:
|
|
81
|
+
fetch-depth: 0
|
|
82
|
+
ref: documentation_page # Directly check out the documentation_page branch
|
|
83
|
+
|
|
84
|
+
- name: Install jq for JSON manipulation
|
|
85
|
+
run: |
|
|
86
|
+
sudo apt-get update
|
|
87
|
+
sudo apt-get install -y jq
|
|
88
|
+
|
|
89
|
+
- name: Get current tag from GITHUB_REF
|
|
90
|
+
run: |
|
|
91
|
+
# Extract the tag name from GITHUB_REF, which should be refs/tags/<tag>
|
|
92
|
+
tag="${GITHUB_REF#refs/tags/}"
|
|
93
|
+
echo "tag=$tag" >> $GITHUB_ENV
|
|
94
|
+
echo "Current tag: $tag"
|
|
95
|
+
|
|
96
|
+
- name: Update version_switcher.json with new tag
|
|
97
|
+
env:
|
|
98
|
+
TAG: ${{ env.tag }}
|
|
99
|
+
run: |
|
|
100
|
+
# Define the path to version_switcher.json and new version details
|
|
101
|
+
json_file="version_switcher.json"
|
|
102
|
+
current_tag="${TAG}"
|
|
103
|
+
json_url="https://martinpdes.github.io/PyOptik/docs/${current_tag}"
|
|
104
|
+
|
|
105
|
+
# Create a new JSON entry for the current tag
|
|
106
|
+
new_entry=$(jq -n \
|
|
107
|
+
--arg name "$current_tag" \
|
|
108
|
+
--arg version "$current_tag" \
|
|
109
|
+
--arg url "$json_url" \
|
|
110
|
+
'{name: $name, version: $version, url: $url}')
|
|
111
|
+
|
|
112
|
+
# Append new entry to version_switcher.json
|
|
113
|
+
jq ". + [$new_entry]" $json_file > temp.json && mv temp.json $json_file
|
|
114
|
+
|
|
115
|
+
- name: Commit and push the updated version_switcher.json
|
|
116
|
+
run: |
|
|
117
|
+
git config user.name "github-actions[bot]"
|
|
118
|
+
git config user.email "github-actions[bot]@users.noreply.github.com"
|
|
119
|
+
git add version_switcher.json
|
|
120
|
+
git commit -m "Update version_switcher.json with new tag ${{ env.tag }}"
|
|
121
|
+
git push origin documentation_page
|
|
@@ -6,10 +6,10 @@ README.rst
|
|
|
6
6
|
meta.yaml
|
|
7
7
|
pyproject.toml
|
|
8
8
|
.github/dependabot.yml
|
|
9
|
+
.github/workflows/deploy_PyPi.yml
|
|
9
10
|
.github/workflows/deploy_anaconda.yml
|
|
10
11
|
.github/workflows/deploy_coverage.yml
|
|
11
12
|
.github/workflows/deploy_documentation.yml
|
|
12
|
-
.github/workflows/deploy_workflow.yml
|
|
13
13
|
PyOptik/__init__.py
|
|
14
14
|
PyOptik/__main__.py
|
|
15
15
|
PyOptik/_version.py
|
|
@@ -83,6 +83,7 @@ docs/source/conf.py
|
|
|
83
83
|
docs/source/index.rst
|
|
84
84
|
docs/source/references.rst
|
|
85
85
|
docs/source/_static/default.css
|
|
86
|
+
docs/source/_static/thumbnail.png
|
|
86
87
|
docs/source/gallery/index.rst
|
|
87
88
|
tests/__init__.py
|
|
88
89
|
tests/test_sellmeier.py
|
|
Binary file
|
|
@@ -2,15 +2,14 @@
|
|
|
2
2
|
# -*- coding: utf-8 -*-
|
|
3
3
|
|
|
4
4
|
import sys
|
|
5
|
-
|
|
5
|
+
import os
|
|
6
6
|
from MPSPlots.styles import use_mpsplots_style
|
|
7
|
-
|
|
7
|
+
from pathlib import Path
|
|
8
8
|
import PyOptik
|
|
9
|
-
from PyOptik.directories import
|
|
9
|
+
from PyOptik.directories import doc_css_path
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
sys.path.
|
|
13
|
-
sys.path.insert(0, project_path.joinpath('PyOptik'))
|
|
12
|
+
sys.path.append(str(Path(".").resolve()))
|
|
14
13
|
|
|
15
14
|
|
|
16
15
|
def setup(app):
|
|
@@ -47,6 +46,9 @@ extensions = [
|
|
|
47
46
|
napoleon_google_docstring = False
|
|
48
47
|
napoleon_numpy_docstring = True
|
|
49
48
|
|
|
49
|
+
html_logo = "_static/thumbnail.png"
|
|
50
|
+
html_favicon = "_static/thumbnail.png"
|
|
51
|
+
|
|
50
52
|
|
|
51
53
|
def reset_mpl(gallery_conf, fname):
|
|
52
54
|
use_mpsplots_style()
|
|
@@ -68,7 +70,6 @@ sphinx_gallery_conf = {
|
|
|
68
70
|
'reset_modules': reset_mpl,
|
|
69
71
|
'line_numbers': False,
|
|
70
72
|
'remove_config_comments': True,
|
|
71
|
-
'within_subsection_order': FileNameSortKey,
|
|
72
73
|
'capture_repr': ('_repr_html_', '__repr__'),
|
|
73
74
|
'nested_sections': True,
|
|
74
75
|
}
|
|
@@ -102,13 +103,12 @@ pygments_style = "sphinx"
|
|
|
102
103
|
major, minor = version[:2]
|
|
103
104
|
binder_branch = f"v{major}.{minor}.x"
|
|
104
105
|
|
|
105
|
-
html_theme_options =
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
},
|
|
106
|
+
html_theme_options = dict()
|
|
107
|
+
|
|
108
|
+
html_theme_options['logo'] = dict(text='PyOptik', image="_static/thumbnail.png")
|
|
109
|
+
html_theme_options["show_nav_level"] = 0
|
|
110
|
+
|
|
111
|
+
html_theme_options.update({
|
|
112
112
|
"icon_links": [
|
|
113
113
|
{
|
|
114
114
|
"name": "GitHub",
|
|
@@ -134,9 +134,17 @@ html_theme_options = {
|
|
|
134
134
|
"footer_start": ["copyright"],
|
|
135
135
|
"footer_end": ["sphinx-version", "theme-version"],
|
|
136
136
|
# Other
|
|
137
|
-
"
|
|
138
|
-
"
|
|
137
|
+
"pygments_light_style": "default",
|
|
138
|
+
"pygments_dark_style": "github-dark",
|
|
139
139
|
}
|
|
140
|
+
)
|
|
141
|
+
|
|
142
|
+
current_version = os.getenv("tag", "latest")
|
|
143
|
+
|
|
144
|
+
html_theme_options["switcher"] = dict(
|
|
145
|
+
json_url="https://raw.githubusercontent.com/MartinPdeS/PyOptik/documentation_page/version_switcher.json",
|
|
146
|
+
version_match=current_version,
|
|
147
|
+
)
|
|
140
148
|
|
|
141
149
|
htmlhelp_basename = 'PyOptikdoc'
|
|
142
150
|
|
|
@@ -17,12 +17,11 @@ channels:
|
|
|
17
17
|
|
|
18
18
|
requirements:
|
|
19
19
|
host:
|
|
20
|
-
- python
|
|
20
|
+
- python {{ PY_VER }}*
|
|
21
21
|
- setuptools >=40.8.0
|
|
22
22
|
- wheel
|
|
23
23
|
- setuptools-scm >=8.0
|
|
24
24
|
- pip
|
|
25
|
-
- martinpdes::mpsplots
|
|
26
25
|
run:
|
|
27
26
|
- flexparser <0.4 # This is due to a dataclass inheritance problem coming from the pint package
|
|
28
27
|
- pint ~= 0.24
|
|
@@ -51,6 +50,7 @@ test:
|
|
|
51
50
|
imports:
|
|
52
51
|
- PyOptik
|
|
53
52
|
requires:
|
|
53
|
+
- python {{ PY_VER }}*
|
|
54
54
|
- pytest>=0.6
|
|
55
55
|
- pytest-cov>=2.0
|
|
56
56
|
- pytest-json-report==1.5.0
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
# .github/workflows/deploy_documentation.yml
|
|
2
|
-
name: Documentation
|
|
3
|
-
|
|
4
|
-
on:
|
|
5
|
-
push:
|
|
6
|
-
branches: [ "master" ]
|
|
7
|
-
tags:
|
|
8
|
-
- '*'
|
|
9
|
-
pull_request:
|
|
10
|
-
branches: [ "master" ]
|
|
11
|
-
|
|
12
|
-
jobs:
|
|
13
|
-
documentation:
|
|
14
|
-
name: Run the documentation building tools
|
|
15
|
-
runs-on: ubuntu-latest
|
|
16
|
-
permissions:
|
|
17
|
-
pull-requests: write
|
|
18
|
-
contents: write
|
|
19
|
-
|
|
20
|
-
steps:
|
|
21
|
-
- name: "Set-up: Python 3.10"
|
|
22
|
-
uses: actions/setup-python@v4
|
|
23
|
-
id: cp310
|
|
24
|
-
with:
|
|
25
|
-
python-version: "3.10"
|
|
26
|
-
|
|
27
|
-
- name: "Install: Dependencies for headless server"
|
|
28
|
-
shell: bash
|
|
29
|
-
run: |
|
|
30
|
-
sudo apt-get update
|
|
31
|
-
sudo apt-get install xvfb
|
|
32
|
-
|
|
33
|
-
- name: "Checkout requirements and files for testing"
|
|
34
|
-
uses: actions/checkout@v4
|
|
35
|
-
with:
|
|
36
|
-
fetch-depth: 0
|
|
37
|
-
submodules: true
|
|
38
|
-
|
|
39
|
-
- name: Install everything, run the tests, produce the .coverage file
|
|
40
|
-
run: |
|
|
41
|
-
python -m pip install wheel build
|
|
42
|
-
python -m build --wheel
|
|
43
|
-
python -m pip install .[documentation]
|
|
44
|
-
|
|
45
|
-
- name: Install dependencies
|
|
46
|
-
run: |
|
|
47
|
-
pip install sphinx sphinx_rtd_theme myst_parser
|
|
48
|
-
|
|
49
|
-
- name: Sphinx build
|
|
50
|
-
run: |
|
|
51
|
-
sphinx-build docs/source _build
|
|
52
|
-
|
|
53
|
-
- name: Deploy to GitHub Pages
|
|
54
|
-
uses: peaceiris/actions-gh-pages@v3
|
|
55
|
-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
|
|
56
|
-
with:
|
|
57
|
-
publish_branch: gh-pages
|
|
58
|
-
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
59
|
-
publish_dir: _build/
|
|
60
|
-
force_orphan: true
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|