8000 GitHub Actions: use docker container for CI build · symfony/symfony-docs@fb1fb5b · GitHub
[go: up one dir, main page]

Skip to content

Commit fb1fb5b

Browse files
committed
GitHub Actions: use docker container for CI build
1 parent 7350aac commit fb1fb5b

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/ci.yaml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,21 @@ jobs:
1414

1515
runs-on: ubuntu-latest
1616

17+
container: python:3.7-alpine
18+
1719
steps:
1820
- name: "Checkout"
1921
uses: actions/checkout@v2
2022

21-
- name: "Set up Python 3.7"
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-
2623
- name: "Display Python version"
2724
run: python -c "import sys; print(sys.version)"
2825

29-
- name: "Install Sphinx dependencies"
30-
run: sudo apt-get install python-dev build-essential
31-
3226
- name: "Install Sphinx"
3327
run: pip install --user sphinx
3428

29+
- name: "Install pip dependencies"
30+
run: apk add --no-cache git make
31+
3532
- name: "Install custom requirements via pip"
3633
run: pip install -r _build/.requirements.txt
3734

0 commit comments

Comments
 (0)
0