test-pcbdraw #1645
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |