Skip to content
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

Change container for CI #1296

Merged
merged 1 commit into from
Feb 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
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
35 changes: 24 additions & 11 deletions .zuul.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@
run: ci/test-tox.yaml
vars:
tox_env: mypy
job_dependencies:
- tox
nodeset:
nodes:
name: test-node
label: pod-python-f35
label: cloud-fedora-35

- job:
name: tox-lint
Expand All @@ -25,10 +27,12 @@
run: ci/test-tox.yaml
vars:
tox_env: lint
job_dependencies:
- tox
nodeset:
nodes:
name: test-node
label: pod-python-f35
label: cloud-fedora-35
- job:
name: tox-format
description: |
Expand All @@ -40,10 +44,12 @@
run: ci/test-tox.yaml
vars:
tox_env: format
job_dependencies:
- tox
nodeset:
nodes:
name: test-node
label: pod-python-f35
label: cloud-fedora-35

- job:
name: tox-python38
Expand All @@ -58,12 +64,13 @@
run: ci/test-tox.yaml
vars:
tox_env: py38
dependencies:
job_dependencies:
- tox
- python38
nodeset:
nodes:
name: test-node
label: pod-python-f35
label: cloud-fedora-35

- job:
name: tox-python39
Expand All @@ -78,12 +85,13 @@
run: ci/test-tox.yaml
vars:
tox_env: py39
dependencies:
job_dependencies:
- tox
- python39
nodeset:
nodes:
name: test-node
label: pod-python-f35
label: cloud-fedora-35

- job:
name: anitya-tox-docs
Expand All @@ -99,14 +107,15 @@
run: ci/test-tox.yaml
vars:
tox_env: docs
dependencies:
job_dependencies:
- tox
- graphviz
- python3-sphinxcontrib-httpdomain
- python3-sqlalchemy_schemadisplay
nodeset:
nodes:
name: test-node
label: pod-python-f35
label: cloud-fedora-35

- job:
name: tox-bandit
Expand All @@ -119,10 +128,12 @@
run: ci/test-tox.yaml
vars:
tox_env: bandit
job_dependencies:
- tox
nodeset:
nodes:
name: test-node
label: pod-python-f35
label: cloud-fedora-35

- job:
name: tox-diff-cover
Expand All @@ -135,10 +146,12 @@
run: ci/test-tox.yaml
vars:
tox_env: "py38,diff-cover"
job_dependencies:
- tox
nodeset:
nodes:
name: test-node
label: pod-python-f35
label: cloud-fedora-35

- project:
check:
Expand Down
16 changes: 16 additions & 0 deletions ci/test-tox.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
- hosts: all
tasks:
- name: Print job dependencies
debug:
var: job_dependencies

- name: Install dependencies
dnf:
name:
"{{job_dependencies}}"
become: True
when: (job_dependencies is defined) and (job_dependencies|length > 0)

- name: Print dependencies
debug:
var: dependencies

- name: Install dependencies
dnf:
name:
"{{dependencies}}"
become: True
when: (dependencies is defined) and (dependencies|length > 0)

- name: Run test
Expand Down
1 change: 1 addition & 0 deletions news/PR1296.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Migrate to cloud-fedora-35 container on CI