-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.02 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Tests
on:
push:
branches: [master, main]
pull_reauest:
branches: [master, main]
schedule:
- cron: '0 6 * * *'
env:
COLORTERM: 'yes'
TERM: 'xterm-256color'
PYTEST_ADDOPTS: '--color=yes'
jobs:
sanity:
runs-on: ubuntu-latest
strategy:
matrix:
python_version: ["3.9", "3.11"]
steps:
- name: Check out code
uses: actions/checkout@v3
with:
path: ansible_collections/MozeBaltyk/AnsiColt/
- name: Set up Python ${{ matrix.python_version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
cache: 'pip'
- name: Create default collection path
run: |
mkdir -p /home/runner/.ansible/
ln -s /home/runner/work/MozeBaltyk/AnsiColt/ /home/runner/.ansible/collections
- name: Install yamllint, ansible and molecule
run: |
python -m pip install --upgrade pip
pip install yamllint ansible-core flake8 ansible-lint voluptuous