File tree Expand file tree Collapse file tree 2 files changed +19
-6
lines changed Expand file tree Collapse file tree 2 files changed +19
-6
lines changed Original file line number Diff line number Diff line change 25
25
- name : Install dependencies
26
26
run : |
27
27
python -m pip install --upgrade pip
28
- python -m pip install flake8 pytest pytest-pretty
28
+ python -m pip install -r requirements-dev.txt
29
29
- name : Lint with flake8
30
30
run : |
31
31
# stop the build if there are Python syntax errors or undefined names
35
35
- name : Test with pytest
36
36
run : |
37
37
pytest
38
+
38
39
build :
39
- name : Build and test
40
+ name : Build packages
40
41
needs : test
41
42
runs-on : ubuntu-latest
42
43
steps :
52
53
- name : Build the packages
53
54
run : |
54
55
python -m build
56
+
57
+ docs :
58
+ name : Test documentation build
59
+ needs : test
60
+ runs-on : ubuntu-latest
61
+ steps :
62
+ - uses : actions/checkout@v4
63
+ - name : Set up Python
64
+ uses : actions/setup-python@v5
65
+ with :
66
+ python-version : ' 3.12'
67
+ - name : Install dependencies
68
+ run : |
69
+ python -m pip install --upgrade pip
70
+ python -m pip install -r requirements-dev.txt
55
71
- name : Test documentation build
56
72
run : |
57
73
sphinx-build -b html docsrc docs -E -d "docsrc/_doctrees"
Original file line number Diff line number Diff line change 55
55
56
56
deploy-docs :
57
57
name : Deploy documentation to GitHub Pages
58
- needs : pypi-publish
58
+ needs : test
59
59
runs-on : ubuntu-latest
60
60
permissions :
61
61
contents : read
75
75
run : |
76
76
python -m pip install --upgrade pip
77
77
python -m pip install -r requirements-dev.txt
78
- - name : Build the packages
79
- run : |
80
- python -m build
81
78
- name : Generate documentation
82
79
run : |
83
80
sphinx-build -b html docsrc docs -E -d "docsrc/_doctrees"
You can’t perform that action at this time.
0 commit comments