Skip to content

Commit 42f1607

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

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,17 @@ 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

2926
- name: "Install Sphinx dependencies"
30-
run: sudo apt-get install python-dev build-essential
27+
run: apk add --no-cache git make
3128

3229
- name: "Install Sphinx"
3330
run: pip install --user sphinx

0 commit comments

Comments
 (0)