Files
ansible-adguardhome/.github/workflows/ci.yml
Jim Myhrberg 8f1ed8aa02 test: Add with-config and change-to-non-root-user test scenarios
Also run test scenarios in parallel on GitHub Actions.
2020-01-18 03:31:47 +00:00

30 lines
734 B
YAML

---
name: CI
on: push
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.6, 3.7]
scenario:
- default
- with-config
- change-to-non-root-user
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get install -y docker
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with molecule
run: |
molecule test -s ${{ matrix.scenario }}