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

Fix iterator to be compatible with python3 #118

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from
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
28 changes: 28 additions & 0 deletions .github/workflows/molecute.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
name: Molecule Test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
matrix:
python-version: ["3.9", "3.10", "3.11"]
molecule_distro: ['debian', 'ubuntu']
steps:
- uses: actions/checkout@v2
with:
path: airflow-role
- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install deps
run: |
python3 -m pip install -U pip
python3 -m pip install pipenv
pipenv sync
- name: Test with molecule
run: pipenv run molecule test --all
env:
MOLECULE_DISTRO: ${{ matrix.molecule_distro }}
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
---
dist: focal
language: python
python: "3.9"
python:
- 3.9
- 3.10
os: linux
services:
- docker
Expand Down
2 changes: 1 addition & 1 deletion tasks/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@

- name: Airflow | Add connections from configuration file
command: "{{ airflow_executable }} connections -a \
{% for key, value in item.iteritems() %}--{{ key }} '{{ value }}' \
{% for key, value in item.items() %}--{{ key }} '{{ value }}' \
{% endfor %}"
become: true
become_user: "{{ airflow_user }}"
Expand Down