aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Challis2025-12-15 01:21:06 +0100
committerGitHub2025-12-15 01:21:06 +0100
commit2c847b0350cfef92f347f27a0ebe9f0187e95b5e (patch)
tree8f3b929a632142a5897f838595b1fa3b3007ebc4
parente1c869b8dafd9078f71a1a31f5d63c77196142c1 (diff)
Consistently install branch specific dependencies in CI (#25874)
-rw-r--r--.github/workflows/ci_build_major_branch.yml8
-rw-r--r--.github/workflows/ci_build_major_branch_keymap.yml16
-rw-r--r--.github/workflows/cli.yml1
-rw-r--r--.github/workflows/docs.yml5
-rw-r--r--.github/workflows/regen.yml3
-rw-r--r--.github/workflows/regen_push.yml3
-rw-r--r--.github/workflows/unit_test.yml2
7 files changed, 21 insertions, 17 deletions
diff --git a/.github/workflows/ci_build_major_branch.yml b/.github/workflows/ci_build_major_branch.yml
index 2ea8310cb4..e857f5f6c4 100644
--- a/.github/workflows/ci_build_major_branch.yml
+++ b/.github/workflows/ci_build_major_branch.yml
@@ -35,11 +35,6 @@ jobs:
slice_length: ${{ steps.generate_slice_length.outputs.slice_length }}
steps:
- - name: Install prerequisites
- run: |
- apt-get update
- apt-get install -y jq
-
- name: Disable safe.directory check
run: |
git config --global --add safe.directory '*'
@@ -47,6 +42,9 @@ jobs:
- name: Checkout QMK Firmware
uses: actions/checkout@v6
+ - name: Install dependencies
+ run: pip3 install -r requirements-dev.txt
+
- name: Determine concurrency
id: generate_slice_length
run: |
diff --git a/.github/workflows/ci_build_major_branch_keymap.yml b/.github/workflows/ci_build_major_branch_keymap.yml
index 10709172df..3b2db843a9 100644
--- a/.github/workflows/ci_build_major_branch_keymap.yml
+++ b/.github/workflows/ci_build_major_branch_keymap.yml
@@ -27,11 +27,6 @@ jobs:
targets: ${{ steps.generate_targets.outputs.targets }}
steps:
- - name: Install prerequisites
- run: |
- apt-get update
- apt-get install -y jq
-
- name: Disable safe.directory check
run: |
git config --global --add safe.directory '*'
@@ -39,6 +34,9 @@ jobs:
- name: Checkout QMK Firmware
uses: actions/checkout@v6
+ - name: Install dependencies
+ run: pip3 install -r requirements-dev.txt
+
- name: Generate build targets
id: generate_targets
run: |
@@ -79,11 +77,6 @@ jobs:
target: ${{ fromJson(needs.generate_targets.outputs.targets) }}
steps:
- - name: Install prerequisites
- run: |
- apt-get update
- apt-get install -y jq
-
- name: Disable safe.directory check
run: |
git config --global --add safe.directory '*'
@@ -91,6 +84,9 @@ jobs:
- name: Checkout QMK Firmware
uses: actions/checkout@v6
+ - name: Install dependencies
+ run: pip3 install -r requirements-dev.txt
+
- name: Get target definitions
uses: actions/download-artifact@v7
with:
diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml
index ca794decf5..3d23a4fbdf 100644
--- a/.github/workflows/cli.yml
+++ b/.github/workflows/cli.yml
@@ -30,5 +30,6 @@ jobs:
- name: Install dependencies
run: pip3 install -r requirements-dev.txt
+
- name: Run tests
run: qmk pytest
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml
index 5e5669ee78..8a0229f873 100644
--- a/.github/workflows/docs.yml
+++ b/.github/workflows/docs.yml
@@ -35,9 +35,10 @@ jobs:
fetch-depth: 1
- name: Install dependencies
+ run: pip3 install -r requirements-dev.txt
+
+ - name: Install nvm
run: |
- apt-get update && apt-get install -y rsync doxygen
- # install nvm
touch $HOME/.bashrc
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
diff --git a/.github/workflows/regen.yml b/.github/workflows/regen.yml
index 6eb94c8aaa..54daadfa29 100644
--- a/.github/workflows/regen.yml
+++ b/.github/workflows/regen.yml
@@ -21,6 +21,9 @@ jobs:
- uses: actions/checkout@v6
+ - name: Install dependencies
+ run: pip3 install -r requirements-dev.txt
+
- name: Run qmk generators
run: |
util/regen.sh
diff --git a/.github/workflows/regen_push.yml b/.github/workflows/regen_push.yml
index 98d6629bc3..5d8a84b933 100644
--- a/.github/workflows/regen_push.yml
+++ b/.github/workflows/regen_push.yml
@@ -21,6 +21,9 @@ jobs:
- uses: actions/checkout@v6
+ - name: Install dependencies
+ run: pip3 install -r requirements-dev.txt
+
- name: Run qmk generators
run: |
util/regen.sh
diff --git a/.github/workflows/unit_test.yml b/.github/workflows/unit_test.yml
index 2384cfb039..7edc240355 100644
--- a/.github/workflows/unit_test.yml
+++ b/.github/workflows/unit_test.yml
@@ -29,7 +29,9 @@ jobs:
- uses: actions/checkout@v6
with:
submodules: recursive
+
- name: Install dependencies
run: pip3 install -r requirements-dev.txt
+
- name: Run tests
run: qmk test-c