Alpine build improvements (#4) #56
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: CI | |
on: # yamllint disable-line rule:truthy | |
push: | |
branches: | |
- master | |
pull_request: | |
workflow_dispatch: | |
defaults: | |
run: | |
working-directory: "treykee.unifi_network_application" | |
jobs: | |
test: | |
name: Molecule test | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: ${{ !contains(github.event_name, 'pull_request') }} | |
matrix: | |
platforms: | |
- rhel8 | |
- alpine3 | |
- debian12 | |
- ubuntu22 | |
steps: | |
- name: Check out codebase. | |
uses: actions/checkout@v3 | |
with: | |
path: "treykee.unifi_network_application" | |
- name: Set up Python 3. | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- name: Install test Python dependencies. | |
run: | | |
python3 -m pip install --upgrade pip | |
python3 -m pip install -r venv/requirements.txt | |
- name: Run Molecule tests. | |
run: molecule test -s pipeline | |
env: | |
PY_COLORS: "1" | |
ANSIBLE_FORCE_COLOR: "1" | |
MOLECULE_PLATFORM_NAME: ${{ matrix.platforms }} |