8000 minor #13061 Use Sphinx GithubAction instead of Travis (OskarStark) · symfony/symfony-docs@4aa2fa0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4aa2fa0

Browse files
committed
minor #13061 Use Sphinx GithubAction instead of Travis (OskarStark)
This PR was squashed before being merged into the master branch (closes #13061). Discussion ---------- Use Sphinx GithubAction instead of Travis This PR - [x] closes #12212 - [x] adds a GithubAction to provide much faster feedback - [x] removes TravisCI from the Checks - [x] uses the same python version `3.7` like SymfonyCloud, before Travis used `2.7` @javiereguiluz can you explain why do you need on SymfonyCloud: https://github.com/symfony/symfony-docs/blob/a69aece424ef2dd8a969219f797b1ffb55230097/.symfony.cloud.yaml#L55 Commits ------- 2724a83 Use Sphinx GithubAction instead of Travis
2 parents 9844a29 + 2724a83 commit 4aa2fa0

File tree

3 files changed

+53
-27
lines changed

3 files changed

+53
-27
lines changed

.github/workflows/ci.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
on:
2+
push:
3+
branches-ignore:
4+
- 'github-comments'
5+
pull_request:
6+
branches-ignore:
7+
- 'github-comments'
8+
9+
name: CI
10+
11+
jobs:
12+
build:
13+
name: Build
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: "Checkout"
19+
uses: actions/checkout@v2
20+
21+
- name: "Set up Python 3.x"
22+
uses: actions/setup-python@v1
23+
with:
24+
python-version: '3.7' # Semantic version range syntax or exact version of a Python version
25+
26+
- name: "Display Python version"
27+
run: python -c "import sys; print(sys.version)"
28+
29+
- name: "Install Sphinx dependencies"
30+
run: sudo apt-get install python-dev build-essential
31+
32+
- name: "Install Sphinx"
33+
run: pip install --user sphinx
34+
35+
- name: "Install custom requirements via pip"
36+
run: p C4E7 ip install -r _build/.requirements.txt
37+
38+
- name: "Build documentation"
39+
run: make -C _build SPHINXOPTS=-nW html
40+
41+
doctor-rst:
42+
name: DOCtor-RST
43+
44+
runs-on: ubuntu-latest
45+
46+
steps:
47+
- name: "Checkout"
48+
uses: actions/checkout@v2
49+
50+
- name: "Run DOCtor-RST"
51+
uses: docker://oskarstark/doctor-rst
52+
with:
53+
args: --short

.github/workflows/lint.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)
0