Skip to content
Open
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
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ jobs:
python-version: "3.12"

- name: Install python dependencies
id: deps
run: |
pip install -U pip wheel setuptools
pip install -r requirements-test.txt
Expand All @@ -51,6 +52,7 @@ jobs:
./run-qa-checks

- name: Tests
if: ${{ !cancelled() && steps.deps.conclusion == 'success' }}
run: |
mkdir -p ~/.ansible/roles
ln -s $GITHUB_WORKSPACE ~/.ansible/roles/openwisp.openwisp2
Expand Down
12 changes: 12 additions & 0 deletions .yamllint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,15 @@ rules:
line-length:
max: 162
level: warning
truthy:
level: warning
ignore: |
.venv
venv
env
myenv
*.py
__pycache__
.tox
.git
.github
8 changes: 3 additions & 5 deletions molecule/default/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ dependency:
role-file: molecule/resources/requirements.yml
driver:
name: docker
lint: |
set -e
yamllint . || true
ansible-lint || true
platforms:
- name: "${ROLE_NAME:-instance}-${MOLECULE_DISTRO}"
image: "geerlingguy/docker-${MOLECULE_DISTRO}-ansible:${tag:-latest}"
Expand All @@ -28,7 +24,9 @@ provisioner:
verify: ../resources/verify.yml
config_options:
defaults:
stdout_callback: yaml
callbacks_enabled:
- ansible.builtin.default
result_format: yaml
bin_ansible_callbacks: true
inventory:
host_vars:
Expand Down
8 changes: 3 additions & 5 deletions molecule/local/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ dependency:
role-file: molecule/resources/requirements.yml
driver:
name: docker
lint: |
set -e
yamllint . || true
ansible-lint || true
platforms:
- name: "openwisp2-ubuntu2404"
image: "geerlingguy/docker-ubuntu2404-ansible:latest"
Expand Down Expand Up @@ -60,7 +56,9 @@ provisioner:
verify: ../resources/verify.yml
config_options:
defaults:
stdout_callback: yaml
callbacks_enabled:
- ansible.builtin.default
result_format: yaml
bin_ansible_callbacks: true
verifier:
name: ansible
2 changes: 1 addition & 1 deletion molecule/resources/converge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
- name: Install net-tools
apt:
name:
- net-tools
- net-tools

- name: Remove the .dockerenv file
file:
Expand Down
4 changes: 4 additions & 0 deletions run-qa-checks
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ openwisp-qa-check --skip-isort \
--skip-flake8 \
--skip-black \
--skip-checkmigrations

# Run Ansible linting
yamllint --strict --config-file .yamllint.yml .
ansible-lint
2 changes: 1 addition & 1 deletion vars/debian-13.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---

# Override variables for Debian 13
# Override variables for Debian 13

openwisp2_ntp_pkg: ntpsec
openwisp2_libgdk_pixbuf_pkg: libgdk-pixbuf-2.0-0
Expand Down
Loading