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
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