mirror of
https://github.com/qmk/qmk_cli.git
synced 2026-08-03 07:46:45 -04:00
44 lines
815 B
YAML
44 lines
815 B
YAML
name: Test Docker Image
|
|
|
|
on:
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: '3.9'
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v4
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v4
|
|
|
|
- uses: actions/checkout@v7
|
|
|
|
- name: Run ci_tests
|
|
run: ./ci_tests
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python3 -m pip install --upgrade pip
|
|
pip install setuptools wheel
|
|
pip install --group dev
|
|
|
|
- name: Build Python
|
|
run: |
|
|
python3 -m build
|
|
|
|
- name: Build Container
|
|
uses: docker/build-push-action@v7
|
|
with:
|
|
context: .
|
|
target: full
|
|
platforms: linux/amd64,linux/arm64
|