mirror of
https://github.com/pimoroni/grow-python
synced 2025-10-25 15:19:23 +00:00
42 lines
868 B
YAML
42 lines
868 B
YAML
name: Build
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
test:
|
|
name: Python ${{ matrix.python }}
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python: ['3.9', '3.10', '3.11']
|
|
|
|
env:
|
|
RELEASE_FILE: ${{ github.event.repository.name }}-${{ github.event.release.tag_name || github.sha }}-py${{ matrix.python }}
|
|
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python ${{ matrix.python }}
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python }}
|
|
|
|
- name: Install Dependencies
|
|
run: |
|
|
make dev-deps
|
|
|
|
- name: Build Packages
|
|
run: |
|
|
make build
|
|
|
|
- name: Upload Packages
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: ${{ env.RELEASE_FILE }}
|
|
path: dist/
|