summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrett Holman <brett.holman@canonical.com>2023-01-12 08:21:48 -0700
committerGitHub <noreply@github.com>2023-01-12 08:21:48 -0700
commit300b69bbdbecb3b79013bfcd2aef6fd14349f2b1 (patch)
tree191acc08ed865f334f3608990ae5d087f5a6f945
parenta85f103e2c59dd80157e535354d41f03545d7314 (diff)
downloadcloud-init-git-300b69bbdbecb3b79013bfcd2aef6fd14349f2b1.tar.gz
ci: doc to gh actions (#1951)
test: move doc test from Travis to Github actions Changes: - drop unnecessary setuptools pin - use current RTD Python version 3.10.8
-rw-r--r--.github/workflows/check_format.yml30
-rw-r--r--.travis.yml11
2 files changed, 30 insertions, 11 deletions
diff --git a/.github/workflows/check_format.yml b/.github/workflows/check_format.yml
index 4e7a7271..97a41d8e 100644
--- a/.github/workflows/check_format.yml
+++ b/.github/workflows/check_format.yml
@@ -62,3 +62,33 @@ jobs:
run: |
tools/check_json_format.sh cloudinit/config/schemas/schema-cloud-config-v1.json
tools/check_json_format.sh cloudinit/config/schemas/versions.schema.cloud-config.json
+
+ doc:
+ strategy:
+ fail-fast: false
+ name: Check docs
+ runs-on: ubuntu-22.04
+ steps:
+ - name: "Checkout #1"
+ uses: actions/checkout@v3.0.0
+
+ - name: "Checkout #2 (for tools/read-version)"
+ run: |
+ git fetch --unshallow
+ git remote add upstream https://git.launchpad.net/cloud-init
+ - name: "Install Python 3.10"
+ uses: actions/setup-python@v4
+ with:
+ python-version: '3.10.8'
+ - name: "Install dependencies"
+ run: |
+ sudo DEBIAN_FRONTEND=noninteractive apt-get -qy update
+ sudo DEBIAN_FRONTEND=noninteractive apt-get -qy install tox lintian
+ - name: "Spellcheck"
+ run: |
+ make check_spelling
+ - name: "Build docs"
+ env:
+ TOXENV: doc
+ run: |
+ tox
diff --git a/.travis.yml b/.travis.yml
index 45cfbf7e..c8cb9282 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -133,17 +133,6 @@ matrix:
TOXENV=lowest-supported
PYTEST_ADDOPTS=-v # List all tests run by pytest
dist: bionic
- - python: 3.10
- env: TOXENV=doc
- install:
- - git fetch --unshallow
- # Not pinning setuptools can cause failures on python 3.7 and 3.8 builds
- # See https://github.com/pypa/setuptools/issues/3118
- - pip install setuptools==59.6.0
- - sudo apt-get install lintian
- - pip install tox
- script:
- - make check_spelling && tox
# Test all supported Python versions (but at the end, so we schedule
# longer-running jobs first)
- python: 3.12-dev