Skip to content
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
12 changes: 6 additions & 6 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion playbooks/pre.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
name:
- curl
- jq
- pipenv
- python3-docker
- python3-requests

Expand All @@ -25,3 +24,4 @@
roles:
- ensure-docker
- ensure-pip
- ensure-pipenv
9 changes: 5 additions & 4 deletions playbooks/test-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
- name: Test python setup
hosts: all

vars:
python_venv_dir: /tmp/venv

tasks:
- name: Run test script
ansible.builtin.shell:
Expand All @@ -12,7 +15,5 @@
set -o pipefail
set -x

export PATH=$PATH:$HOME/.local/bin

pipenv install
pipenv run pip install --no-deps .
{{ python_venv_dir }}/bin/pipenv install
{{ python_venv_dir }}/bin/pipenv run pip install --no-deps .
13 changes: 6 additions & 7 deletions playbooks/test-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
- name: Run unit tests
hosts: all

vars:
python_venv_dir: /tmp/venv

tasks:
- name: Install dependencies
ansible.builtin.shell:
Expand All @@ -12,10 +15,8 @@
set -o pipefail
set -x

export PATH=$PATH:$HOME/.local/bin

pipenv install --dev
pipenv run pip install .
{{ python_venv_dir }}/bin/pipenv install --dev --deploy
{{ python_venv_dir }}/bin/pipenv run pip install .

- name: Run pytest
ansible.builtin.shell:
Expand All @@ -26,6 +27,4 @@
set -o pipefail
set -x

export PATH=$PATH:$HOME/.local/bin

pipenv run pytest
{{ python_venv_dir }}/bin/pipenv run pytest