38 lines
791 B
YAML
38 lines
791 B
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
pull_request:
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-${{ matrix.ubuntu }}
|
|
strategy:
|
|
matrix:
|
|
ubuntu: ["22.04", "24.04"]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: "3.11"
|
|
|
|
- name: Install test deps
|
|
run: |
|
|
pip install pytest
|
|
sudo apt-get install -y bats shellcheck inkscape
|
|
|
|
- name: Python unit tests
|
|
run: pytest tests/test_merge_prefs.py -v
|
|
|
|
- name: Shellcheck
|
|
run: |
|
|
shellcheck install.sh
|
|
shellcheck uninstall.sh
|
|
shellcheck scripts/detect_platform.sh
|
|
|
|
- name: Bats integration tests
|
|
run: bats tests/test_install.bats
|