Skip to content

test-pcbdraw

test-pcbdraw #1645

Workflow file for this run

name: test-pcbdraw
on:
push:
pull_request:
schedule:
- cron: '0 3 * * *'
jobs:
test:
name: "Test PcbDraw (KiCAD ${{ matrix.kicad }})"
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
kicad: ["9", "10"]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Install KiCAD ${{ matrix.kicad }}
run: |
sudo add-apt-repository --yes ppa:kicad/kicad-${{ matrix.kicad }}.0-releases
sudo apt-get update -qq
sudo apt-get -qq install --yes --no-install-recommends \
kicad kicad-footprints kicad-symbols \
python3 python3-pip python3-venv \
make git librsvg2-bin
- name: Install PcbDraw
run: |
pip install --break-system-packages build mypy
pip install --break-system-packages -e .[dev]
- name: Type check
run: make mypy
- name: Run tests
run: make test
- name: Build package
run: python3 -m build
- name: Upload package artifact
uses: actions/upload-artifact@v4
with:
name: pcbdraw-kicad${{ matrix.kicad }}
path: dist
retention-days: 7