Skip to content

Commit afa70e0

Browse files
authored
Merge pull request #1 from StanFromIreland/3.13
Add Build and Lint workflows
2 parents 440fdf3 + f59f031 commit afa70e0

1 file changed

Lines changed: 55 additions & 0 deletions

File tree

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Build and Lint Workflow
2+
3+
on:
4+
schedule:
5+
- cron: '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+
continue-on-error: true
17+
steps:
18+
- uses: actions/setup-python@master
19+
with:
20+
python-version: 3
21+
- run: pip install sphinx-lint
22+
- uses: actions/checkout@master
23+
with:
24+
ref: 3.13
25+
- uses: rffontenelle/sphinx-lint-problem-matcher@v1.0.0
26+
- run: sphinx-lint
27+
28+
build-translation:
29+
runs-on: ubuntu-latest
30+
strategy:
31+
fail-fast: false
32+
steps:
33+
- uses: actions/setup-python@master
34+
with:
35+
python-version: 3
36+
- uses: actions/checkout@master
37+
with:
38+
repository: python/cpython
39+
ref: 3.13
40+
- run: make venv
41+
working-directory: ./Doc
42+
- uses: actions/checkout@master
43+
with:
44+
ref: 3.13
45+
path: Doc/locales/fa/LC_MESSAGES
46+
- run: git pull
47+
working-directory: ./Doc/locales/fa/LC_MESSAGES
48+
- uses: sphinx-doc/github-problem-matcher@v1.1
49+
- run: make -e SPHINXOPTS="--color -D language='fa' -W --keep-going" html
50+
working-directory: ./Doc
51+
- uses: actions/upload-artifact@master
52+
if: success() || failure()
53+
with:
54+
name: build-3.13-html
55+
path: Doc/build/html

0 commit comments

Comments
 (0)