File tree 3 files changed +63
-0
lines changed
3 files changed +63
-0
lines changed Original file line number Diff line number Diff line change
1
+ diffpy.snmf /_version.py export-subst
Original file line number Diff line number Diff line change
1
+ name : Build Documentation
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ release :
8
+
9
+ jobs :
10
+ test :
11
+ runs-on : ubuntu-latest
12
+ defaults :
13
+ run :
14
+ shell : bash -l {0}
15
+ steps :
16
+ - uses : actions/checkout@v3
17
+ with :
18
+ fetch-depth : 0
19
+
20
+ - uses : conda-incubator/setup-miniconda@v2
21
+ with :
22
+ activate-environment : build
23
+ auto-update-conda : true
24
+
25
+ - name : install requirements
26
+ run : >-
27
+ conda install -n build -c conda-forge
28
+ --file requirements/build.txt
29
+ --file requirements/run.txt
30
+ --file requirements/docs.txt
31
+ --quiet --yes
32
+
33
+ - name : install the package
34
+ run : python -m pip install . --no-deps
35
+
36
+ - name : build documents
37
+ run : make -C doc html
38
+
39
+ - name : Deploy
40
+ uses : peaceiris/actions-gh-pages@v4
41
+ with :
42
+ github_token : ${{ secrets.GITHUB_TOKEN }}
43
+ publish_dir : ./doc/build/html
Original file line number Diff line number Diff line change
1
+ name : pre-commit
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+ workflow_dispatch :
7
+
8
+ jobs :
9
+ pre-commit :
10
+ # pull requests are a duplicate of a branch push if within the same repo.
11
+ if : github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
12
+
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@v3
16
+ - uses : actions/setup-python@v4
17
+ -
uses :
pre-commit/[email protected]
18
+ with :
19
+ extra_args : --all-files
You can’t perform that action at this time.
0 commit comments