File: cli_setup.yml

package info (click to toggle)
qmk 1.1.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 240 kB
  • sloc: python: 512; sh: 45; makefile: 4
file content (80 lines) | stat: -rw-r--r-- 1,883 bytes parent folder | download
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: CLI Setup

on:
  push:
    branches:
    - master
  pull_request:

jobs:
  test_cli_base_container:
    runs-on: ubuntu-latest
    container: ghcr.io/qmk/qmk_base_container

    env:
      QMK_HOME: ~/qmk_firmware

    steps:
    - uses: actions/checkout@v4

    - name: Install dependencies
      run: apt-get update && apt-get install -y python3-venv

    - name: Run ci_tests
      run: ./ci_tests -a

  test_cli_linux_macos:
    needs: test_cli_base_container

    runs-on: ${{ matrix.os }}
    env:
      QMK_HOME: ~/qmk_firmware
    strategy:
      matrix:
        os: [macos-latest, ubuntu-latest]
        python-version: ['3.9', '3.10', '3.11', '3.12']
        include:
          - os: macos-13
            python-version: '3.9'

    steps:
    - uses: actions/checkout@v4

    - name: Set up Python ${{ matrix.python-version }}
      uses: actions/setup-python@v5
      with:
        python-version: ${{ matrix.python-version }}

    - name: Run ci_tests
      run: ./ci_tests -a

  test_cli_win:
    needs: test_cli_base_container

    runs-on: windows-latest
    env:
      QMK_HOME: $HOME/qmk_firmware

    steps:
    - uses: actions/checkout@v4

    - name: (MSYS2) Setup and install dependencies
      uses: msys2/setup-msys2@v2
      with:
        update: true
        install: git mingw-w64-x86_64-toolchain mingw-w64-x86_64-python-pip mingw-w64-x86_64-python-build mingw-w64-x86_64-python-pillow mingw-w64-x86_64-rust

    # Upgrade pip due to msys packaging + pypa/build/pull/736 issues
    - name: (MSYS2) Install Python dependencies
      shell: msys2 {0}
      run: |
        python3 -m pip install --upgrade pip

    - name: (MSYS2) Install QMK CLI from source
      shell: msys2 {0}
      run: |
        python3 -m build
        python3 -m pip install dist/qmk-*.tar.gz
    - name: (MSYS2) Run qmk setup -y
      shell: msys2 {0}
      run: qmk setup -y