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

finish #12

Open
wants to merge 9 commits into
base: pngmbh
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Chore: move tests to github actions
 - disable tests for Ansible 2.8 (we use 2.9)
 - disable tests for Python version we don't use
  • Loading branch information
till committed Jul 31, 2024
commit ab2f5b1c011c4a2c00a2fbcdb99712aa1843f6a5
19 changes: 19 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: ci

on:
pull_request

jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
# this should be in sync with our deploy image
python-version: "3.7.x"
- run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- run: tox
38 changes: 0 additions & 38 deletions .travis.yml

This file was deleted.

9 changes: 6 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
[tox]
minversion = 1.8
envlist = py{37,38}-ansible{28,29}-swarm-{centos,ubuntu}
envlist = py{37}-ansible{29}-swarm-{centos,ubuntu}
skipsdist = true

[gh-actions]
python =
3.7: py37

[testenv]
passenv = *
deps =
-rtest-requirements.txt
ansible29: ansible<3.0
ansible28: ansible<2.9
ansible29: ansible<2.10
commands =
centos: {posargs:molecule test -s swarm-centos --destroy always}
ubuntu: {posargs:molecule test -s swarm-ubuntu --destroy always}