8000 Use Sphinx GithubAction instead of Travis by OskarStark · Pull Request #13061 · symfony/symfony-docs · GitHub
[go: up one dir, main page]

Skip to content

Use Sphinx GithubAction instead of Travis #13061

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Address comments by @localheinzwq
  • Loading branch information
OskarStark committed Feb 10, 2020
commit 0084ec2298d20fcf9c3122d36793c900842073f7
14 changes: 13 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,42 @@ name: CI
jobs:
build:
name: Build

runs-on: ubuntu-latest

steps:
- name: "Checkout"
uses: actions/checkout@v2
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about introducing a bit of vertical whitespace?

diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml
index a019ca7a1..6fa41f61f 100644
--- a/.github/workflows/ci.yaml
+++ b/.github/workflows/ci.yaml
@@ -11,30 +11,42 @@ name: CI
 jobs:
     build:
         name: Build
+
         runs-on: ubuntu-latest
+
         steps:
             -   name: "Checkout"
                 uses: actions/checkout@v2
+
             -   name: "Set up Python 3.x"
                 uses: actions/setup-python@v1
                 with:
                     python-version: '3.7' # Semantic version range syntax or exact version of a Python version
+
             -   name: "Display Python version"
                 run: python -c "import sys; print(sys.version)"
+
             -   name: "Install Sphinx dependencies"
                 run: sudo apt-get install python-dev build-essential
+
             -   name: "Install Sphinx"
                 run: pip install --user sphinx
+
             -   name: "INstall custom requirements via pip"
                 run: pip install -r _build/.requirements.txt
+
             -   name: "Build documentation"
                 run: make -C _build SPHINXOPTS=-nW html
+
     doctor-rst:
         name: DOCtor-RST
+
         runs-on: ubuntu-latest
+
         steps:
             -   name: "Checkout"
                 uses: actions/checkout@v2
+
             -   name: "Run DOCtor-RST"
                 uses: docker://oskarstark/doctor-rst
                 with:

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! Done ✅


- name: "Set up Python 3.x"
uses: actions/setup-python@v1
with:
python-version: '3.7' # Semantic version range syntax or exact version of a Python version

- name: "Display Python version"
run: python -c "import sys; print(sys.version)"

- name: "Install Sphinx dependencies"
run: sudo apt-get install python-dev build-essential

- name: "Install Sphinx"
run: pip install --user sphinx
- name: "INstall custom requirements via pip"

- name: "Install custom requirements via pip"
run: pip install -r _build/.requirements.txt

- name: "Build documentation"
run: make -C _build SPHINXOPTS=-nW html

doctor-rst:
name: DOCtor-RST

runs-on: ubuntu-latest

steps:
- name: "Checkout"
uses: actions/checkout@v2

- name: "Run DOCtor-RST"
uses: docker://oskarstark/doctor-rst
with:
Expand Down
0