CI bump latest HC3 version to 9.2.17.211525 #1968
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI tests | |
on: | |
push: | |
env: | |
# ansible-test needs special directory structure. | |
# WORKDIR is a subdir of GITHUB_WORKSPACE | |
WORKDIR: work-dir/ansible_collections/scale_computing/hypercore | |
LANG: C.UTF-8 | |
jobs: | |
mypy: | |
name: Type checks (mypy) | |
runs-on: [ubuntu-latest] | |
container: quay.io/justinc1_github/scale_ci_integ:8 | |
defaults: | |
run: | |
working-directory: ${{ env.WORKDIR }} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v3 | |
with: | |
path: ${{ env.WORKDIR }} | |
- run: echo GITHUB_WORKSPACE=$GITHUB_WORKSPACE | |
- run: echo WORKDIR=$WORKDIR | |
- run: echo PWD=$PWD | |
- name: Run mypy | |
run: mypy -p plugins | |
docs: | |
runs-on: [ubuntu-latest] | |
container: quay.io/justinc1_github/scale_ci_integ:8 | |
defaults: | |
run: | |
working-directory: ${{ env.WORKDIR }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
path: ${{ env.WORKDIR }} | |
- run: apt install -y git make rsync | |
- run: make docs | |
env: | |
ANSIBLE_COLLECTIONS_PATH: $GITHUB_WORKSPACE/work-dir | |
- run: ls -al docs/build/html | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: docs-html | |
path: work-dir/ansible_collections/scale_computing/hypercore/docs/build/html | |
sanity-test: | |
runs-on: [ubuntu-latest] | |
container: quay.io/justinc1_github/scale_ci_integ:8 | |
defaults: | |
run: | |
working-directory: ${{ env.WORKDIR }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
path: ${{ env.WORKDIR }} | |
# Same as "make sanity" | |
# TODO reuse Makefile | |
- run: black -t py38 --check --diff --color plugins tests/unit | |
- run: flake8 --exclude tests/output/ | |
- run: ansible-test sanity --local --python 3.10 | |
# We need to install collections used in examples, | |
# ansible-lint knows those files are playbooks. | |
- run: ansible-galaxy collection install community.crypto | |
- run: ansible-lint | |
units-test: | |
runs-on: [ubuntu-latest] | |
container: quay.io/justinc1_github/scale_ci_integ:8 | |
defaults: | |
run: | |
working-directory: ${{ env.WORKDIR }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
path: ${{ env.WORKDIR }} | |
# Same as "make units" | |
# TODO reuse Makefile | |
- run: ansible-test units --local --python 3.10 --coverage | |
- run: ansible-test coverage html --requirements | |
- run: ansible-test coverage report --omit 'tests/*' --show-missing |