Skip to content

Commit

Permalink
zuul: add test-setup job (#692)
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Berendt <berendt@osism.tech>
  • Loading branch information
berendt authored Nov 17, 2023
1 parent 35de8b5 commit 2c6b2ee
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 32 deletions.
30 changes: 0 additions & 30 deletions .github/workflows/test-python-setup.yml

This file was deleted.

11 changes: 9 additions & 2 deletions .zuul.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,22 @@
- name: secret
secret: SECRET_CONTAINER_IMAGE_PYTHON_OSISM

- job:
name: python-osism-test-setup
pre-run: playbooks/pre.yml
run: playbooks/test-setup.yml

- project:
merge-mode: squash-merge
default-branch: main
check:
jobs:
- flake8
- hadolint
- container-image-python-osism-build
- mypy
- python-black
- container-image-python-osism-build
- python-osism-test-setup
gate:
jobs:
- flake8
Expand All @@ -71,9 +77,10 @@
jobs:
- flake8
- hadolint
- container-image-python-osism-push
- mypy
- python-black
- container-image-python-osism-push
- python-osism-test-setup
post:
jobs:
- container-image-python-osism-push:
Expand Down
20 changes: 20 additions & 0 deletions playbooks/test-setup.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
- name: Test python setup
hosts: all

tasks:
- name: Run test script
ansible.builtin.shell:
executable: /bin/bash
chdir: "{{ zuul.project.src_dir }}"
cmd: |
set -e
set -o pipefail
set -x
export PATH=$PATH:$HOME/.local/bin
pip3 install pipenv
pipenv install
pipenv run pip3 freeze > requirements.txt
pip3 install .

0 comments on commit 2c6b2ee

Please sign in to comment.