style: Execution of black #43
Workflow file for this run
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: build | |
# Actions that take place on branches | |
# or are driven by pull-requests to the main/master branch. | |
# Here we build container images but don't push them | |
# and therefore do not require docker credentials. | |
# ----------------- | |
# Control variables (GitHub Secrets) | |
# ----------------- | |
# | |
# (n/a) | |
# | |
# ----------- | |
# Environment (GitHub Environments) | |
# ----------- | |
# | |
# Environment (n/a) | |
on: | |
push: | |
branches-ignore: | |
- 'main' | |
pull_request: | |
branches: | |
- 'main' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install dependencies | |
run: | | |
pip install --upgrade pip | |
pip install -r build-requirements.txt | |
pip install -r requirements.txt | |
ansible-galaxy install -r requirements.yaml | |
- name: Lint | |
run: | | |
pre-commit run --all-files | |
ansible-lint | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Build | |
uses: docker/build-push-action@v6 | |
with: | |
context: operator | |
platforms: linux/amd64,linux/arm64 |