Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit618e4ce

Browse files
Add linting and test building workflow
1 parent3f56bfa commit618e4ce

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name:Linting and test building workflow
2+
3+
on:
4+
schedule:
5+
-cron:'0 0 * * *'
6+
push:
7+
branches:
8+
-'*'
9+
workflow_dispatch:
10+
11+
jobs:
12+
lint:
13+
runs-on:ubuntu-latest
14+
strategy:
15+
fail-fast:false
16+
matrix:
17+
version:[ '3.14' ]
18+
continue-on-error:true
19+
steps:
20+
-uses:actions/setup-python@master
21+
with:
22+
python-version:3
23+
-run:pip install sphinx-lint
24+
-uses:actions/checkout@master
25+
with:
26+
ref:${{ matrix.version }}
27+
-uses:rffontenelle/sphinx-lint-problem-matcher@v1.0.0
28+
-run:sphinx-lint
29+
30+
build-translation:
31+
runs-on:ubuntu-latest
32+
strategy:
33+
fail-fast:false
34+
matrix:
35+
version:[ '3.14' ]
36+
format:[ html, latex ]
37+
steps:
38+
-uses:actions/setup-python@master
39+
with:
40+
python-version:3
41+
-uses:actions/checkout@master
42+
with:
43+
repository:python/cpython
44+
ref:${{ matrix.version }}
45+
-run:make venv
46+
working-directory:./Doc
47+
-uses:actions/checkout@master
48+
with:
49+
ref:${{ matrix.version }}
50+
path:Doc/locales/hu/LC_MESSAGES
51+
-run:git pull
52+
working-directory:./Doc/locales/hu/LC_MESSAGES
53+
-uses:sphinx-doc/github-problem-matcher@v1.1
54+
-run:make -e SPHINXOPTS="--color -D language='hu' -W --keep-going" ${{ matrix.format }}
55+
working-directory:./Doc
56+
-uses:actions/upload-artifact@master
57+
if:success() || failure()
58+
with:
59+
name:build-${{ matrix.version }}-${{ matrix.format }}
60+
path:Doc/build/${{ matrix.format }}
61+
62+
output-pdf:
63+
runs-on:ubuntu-latest
64+
strategy:
65+
matrix:
66+
version:[ '3.14' ]
67+
needs:[ 'build-translation' ]
68+
steps:
69+
-uses:actions/download-artifact@master
70+
with:
71+
name:build-${{ matrix.version }}-latex
72+
-run:sudo apt-get update
73+
-run:sudo apt-get install -y latexmk texlive-xetex fonts-freefont-otf xindy
74+
-run:make
75+
-uses:actions/upload-artifact@master
76+
with:
77+
name:build-${{ matrix.version }}-pdf
78+
path:.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp