File tree 3 files changed +52
-2
lines changed
3 files changed +52
-2
lines changed Original file line number Diff line number Diff line change
1
+ name : Docs
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ branches :
6
+ - main
7
+ workflow_call :
8
+
9
+ permissions :
10
+ contents : write
11
+
12
+ jobs :
13
+ docs :
14
+ name : " Docs"
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - uses : actions/checkout@v4
18
+ - uses : actions/setup-python@v5
19
+ with :
20
+ python-version : " 3.x"
21
+ cache : " pip"
22
+ - name : Install package
23
+ run : pip install -e .
24
+ - name : Install Sphinx dependencies
25
+ working-directory : docs
26
+ run : pip install -r requirements.txt
27
+ - name : Sphinx build
28
+ working-directory : docs
29
+ run : sphinx-build . _build
30
+ - name : Deploy to GitHub Pages
31
+ uses : peaceiris/actions-gh-pages@v4
32
+ with :
33
+ publish_branch : gh-pages
34
+ github_token : ${{ secrets.GITHUB_TOKEN }}
35
+ publish_dir : docs/_build/
36
+ force_orphan : true
Original file line number Diff line number Diff line change @@ -10,7 +10,12 @@ defaults:
10
10
permissions : read-all
11
11
12
12
jobs :
13
- build-and-publish :
13
+ test :
14
+ uses : ./.github/workflows/test.yml
15
+ secrets : inherit
16
+ publish :
17
+ needs : test
18
+ name : " Publish"
14
19
runs-on : ubuntu-latest
15
20
environment :
16
21
name : pypi
@@ -99,9 +104,15 @@ jobs:
99
104
rm -rf dist
100
105
rm -rf $CHANGELOG_PATH
101
106
docker :
102
- needs : build-and- publish
107
+ needs : [ test, publish ]
103
108
permissions :
104
109
packages : write
105
110
contents : read
106
111
uses : ./.github/workflows/docker.yml
112
+ secrets : inherit
113
+ docs :
114
+ uses : ./.github/workflows/docs.yml
115
+ needs : [ test, publish ]
116
+ permissions :
117
+ contents : write
107
118
secrets : inherit
Original file line number Diff line number Diff line change 7
7
pull_request :
8
8
branches :
9
9
- master
10
+ workflow_call :
10
11
defaults :
11
12
run :
12
13
shell : bash
13
14
permissions : read-all
14
15
15
16
jobs :
16
17
analyze :
18
+ name : " Analyze"
17
19
runs-on : ubuntu-latest
18
20
steps :
19
21
- uses : actions/checkout@v4
28
30
- name : Run static analysis
29
31
run : tox -e linters
30
32
test :
33
+ name : " Test"
31
34
needs : analyze
32
35
runs-on : ubuntu-latest
33
36
strategy :
You can’t perform that action at this time.
0 commit comments