Skip to content

Commit

Permalink
CI: Stub tools and run installer.
Browse files Browse the repository at this point in the history
Run a basic check that install.sh --unstable completes without errors.
  • Loading branch information
Gadgetoid committed Jun 27, 2024
1 parent addcba5 commit ec2f19f
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 2 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/install.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Install Test

on:
pull_request:
push:
branches:
- main

jobs:
test:
name: Python ${{ matrix.python }}
runs-on: ubuntu-latest
env:
TERM: xterm-256color
strategy:
matrix:
python: ['3.9', '3.10', '3.11']

steps:
- name: Checkout Code
uses: actions/checkout@v3

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

- name: Stub files & Patch install.sh
run: |
mkdir -p boot/firmware
touch boot/firmware/config.txt
sed -i "s|/boot/firmware|`pwd`/boot/firmware|g" install.sh
touch raspi-config
chmod +x raspi-config
echo `pwd` >> $GITHUB_PATH
- name: Run Tests
run: |
./install.sh --unstable --force
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,6 @@ ignore = [
]

[tool.pimoroni]
apt_packages = ["git"]
apt_packages = []
configtxt = []
commands = ["false"]
commands = []

0 comments on commit ec2f19f

Please sign in to comment.