2021-11-19 14:04:11 -08:00
|
|
|
name: Unit Tests
|
|
|
|
|
2022-12-22 15:41:16 -08:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2021-11-19 14:04:11 -08:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
- develop
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- 'builddefs/**'
|
|
|
|
- 'quantum/**'
|
|
|
|
- 'platforms/**'
|
|
|
|
- 'tmk_core/**'
|
|
|
|
- 'tests/**'
|
|
|
|
- '*.mk'
|
|
|
|
- 'Makefile'
|
|
|
|
- '.github/workflows/unit_test.yml'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
2023-03-16 18:32:09 -07:00
|
|
|
container: ghcr.io/qmk/qmk_cli
|
2021-11-19 14:04:11 -08:00
|
|
|
|
|
|
|
steps:
|
2022-06-28 23:44:54 -07:00
|
|
|
- uses: actions/checkout@v3
|
2021-11-19 14:04:11 -08:00
|
|
|
with:
|
|
|
|
submodules: recursive
|
2022-04-13 01:00:18 -07:00
|
|
|
- name: Install dependencies
|
|
|
|
run: pip3 install -r requirements-dev.txt
|
2021-11-19 14:04:11 -08:00
|
|
|
- name: Run tests
|
|
|
|
run: make test:all
|